home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_vim.idb / usr / freeware / share / vim / doc / options.txt.z / options.txt
Encoding:
Text File  |  1998-10-28  |  121.7 KB  |  2,911 lines

  1. *options.txt*   For Vim version 5.0.  Last modification: 1998 Feb 15
  2.  
  3.  
  4.           VIM REFERENCE MANUAL    by Bram Moolenaar
  5.  
  6.  
  7. Options                            *options*
  8.  
  9. 1. Setting options            |set-option|
  10. 2. Automatically setting options    |auto-setting|
  11. 3. Saving settings            |save-settings|
  12. 4. Options summary            |option-summary|
  13.  
  14. For an overview of options see help.txt |option-list|.
  15.  
  16. Vim has a number of internal variables and switches which can be set to
  17. achieve special effects.  These options come in three forms:
  18.     toggle        can only be on or off        *toggle*
  19.     number        has a numeric value
  20.     string        has a string value
  21.  
  22. ==============================================================================
  23. 1. Setting options                    *set-option*
  24.  
  25.                             *:se* *:set*
  26. :se[t]            Show all options that differ from their default value.
  27.  
  28. :se[t] all        Show all but terminal options.
  29.  
  30. :se[t] termcap        Show all terminal options.
  31.  
  32. :se[t] {option}?    Show value of {option}.
  33.  
  34. :se[t] {option}        Toggle option: set, switch it on.
  35.             Number option: show value.
  36.             String option: show value.
  37.  
  38. :se[t] no{option}    Toggle option: Reset, switch it off.
  39.  
  40. :se[t] {option}!   or
  41. :se[t] inv{option}    Toggle option: Invert value.  {not in Vi}
  42.  
  43. :se[t] {option}&    Reset option to its default value.  {not in Vi}
  44.  
  45. :se[t] all&        Set all options, except terminal options, to their
  46.             default value.  The values of 'term', 'lines' and
  47.             'columns' are not changed  {not in Vi}
  48.  
  49. :se[t] {option}={value}        or
  50. :se[t] {option}:{value}
  51.             Set string or number option to {value}.  For numeric
  52.             options the value can be given in decimal, hex
  53.             (preceded with 0x) or octal (preceded with '0')
  54.             (hex and octal are only available for machines which
  55.             have the strtol() function).  The old value can be
  56.             inserted by typing <Tab> (or whatever the value of
  57.             'wildchar' is).  See |cmdline-completion|.
  58.             See |option-backslash| for using backslashes in
  59.             {value}.
  60.  
  61.                             *:fix* *:fixdel*
  62. :fix[del]        Set the value of 't_kD':
  63.                 't_kb' is     't_kD' becomes    ~
  64.                   CTRL-?    CTRL-H
  65.                 not CTRL-?    CTRL-?
  66.  
  67.             (CTRL-? is 0177 octal, 0x7f hex) {not in Vi}
  68.  
  69.             If your delete key terminal code is wrong, but the
  70.             code for backspace is allright, you can put this in
  71.             your .vimrc:
  72. >                :fixdel
  73.             This works no matter what the actual code for
  74.             backspace is.
  75.  
  76.             If the backspace key terminal code is wrong you can
  77.             use this:
  78. >                :if &term == "termname"
  79. >                :  set t_kb=^V<BS>
  80. >                :  fixdel
  81. >                :endif
  82.             Where "^V" is CTRL-V and "<BS>" is the backspace key
  83.             (don't type four characters!).  Replace "termname"
  84.             with your terminal name.
  85.  
  86.             If your <Delete> key sends a strange key sequence (not
  87.             CTRL-? or CTRL-H) you cannot use ":fixdel".  Then use:
  88. >                :if &term == "termname"
  89. >                :  set t_kD=^V<Delete>
  90. >                :endif
  91.             Where "^V" is CTRL-V and "<Delete>" is the delete key
  92.             (don't type eight characters!).  Replace "termname"
  93.             with your terminal name.
  94.  
  95.             Note about Linux: By default the backspace key
  96.             produces CTRL-?, which is wrong.  You can fix it by
  97.             putting this line in your rc.local:
  98. >                echo "keycode 14 = BackSpace" | loadkeys
  99.  
  100. The {option} arguments to ":set" may be repeated.  For example:
  101. >  :set ai nosi sw=3 ts=3
  102. If you make an error in one of the arguments an error message will be given
  103. and the text up to the next space will be skipped.  Thus following arguments
  104. will be processed.
  105.  
  106. For {option} the form "t_xx" may be used to set a termcap option.  This will
  107. override the value from the termcap.  You can then use it in a mapping.  If
  108. the "xx" part contains special characters, use the <t_xx> form:
  109.     :set <t_#4>=^[Ot
  110.  
  111. The listing from ":set" looks different from Vi.  Long string options are put
  112. at the end of the list.  The number of options is quite large.  The output of
  113. "set all" probably does not fit on the screen, causing Vim to give the
  114. |more-prompt|.
  115.  
  116.                *:set_env* *expand-env* *expand-environment-var*
  117. Environment variables in most string options will be expanded.  If the
  118. environment variable exists the '$' and the following environment variable
  119. name is replaced with its value.  If it does not exist the '$' and the name
  120. are not modified.  Any non-id character (not a letter, digit or '_') may
  121. follow the environment variable name.  That character and what follows is
  122. appended to the value of the environment variable.  Examples:
  123. >  :set term=$TERM.new
  124. >  :set path=/usr/$INCLUDE,$HOME/include,.
  125.  
  126.                                 *$HOME*
  127. Using "~" is like using "$HOME", but it is only recognized at the start of an
  128. option and after a space or comma.
  129.  
  130. On Unix systems "~user" can be used too.  It is replaced by the home directory
  131. of user "user".  Example:
  132. >   :set path=~mool/include,/usr/include,.
  133.  
  134. On Unix systems the form "${HOME}" can be used too.  The name between {} can
  135. contain non-id characters then.  Note that if you want to use this for the
  136. "gf" command, you need to add the '{' and '}' characters to 'isfname'.
  137.  
  138.                                 *$VIM*
  139. The environment variable "$VIM" is used to locate various support files, such
  140. as the on-line documentation and files used for syntax highlighting.  For
  141. example, the main help file is normally "$VIM/doc/help.txt".
  142.  
  143. To avoid the need for every user to set the $VIM environment variable, Vim
  144. will try to get the value for $VIM in this order:
  145. 1. The value defined by the $VIM environment variable.  You can use this to
  146.    make Vim look in a specific directory for its support files.  Example:
  147. >    setenv VIM /home/paul/vim
  148. 2. For MSDOS and Win32 the environment variable $HOME is used, when defined.
  149.    Works just like setting the $VIM environment variable.
  150. 3. The path from 'helpfile' is used, unless it contains some environment
  151.    variable too (the default is "$VIM/doc/help.txt": chicken-egg problem).
  152.    The file name ("help.txt" or any other) is removed.  If it then ends in
  153.    "/doc", this is removed too.
  154. 4. For MSDOS, Win32 and OS/2 Vim tries to use the directory name of the
  155.    executable.  If it ends in "/src", this is removed.  This is useful if you
  156.    unpacked the .zip file in some directory, and adjusted the search path to
  157.    find the vim executable.
  158. 5. For Unix the compile-time defined installation directory is used (see the
  159.    output of ":version").
  160.  
  161. Note the maximum length of an expanded option is limited.  How much depends on
  162. the system, mostly it is something like 256 or 1024 characters.
  163.  
  164.                             *option-backslash*
  165. To include white space in a string option value it has to be preceded with a
  166. backslash.  To include a backslash you have to use two.  Effectively this
  167. means that the number of backslashes in an option value is halved (rounded
  168. down).
  169. A few examples:
  170. >  :set tags=tags\ /usr/tags        results in "tags /usr/tags"
  171. >  :set tags=tags\\,file        results in "tags\,file"
  172. >  :set tags=tags\\\ file        results in "tags\ file"
  173.  
  174. For MS-DOS and WIN32 backslashes in file names are mostly not removed.  More
  175. precise: For options that expect a file name (those where environment
  176. variables are expanded) a backslash before a normal file name character is not
  177. removed.  But a backslash before a special character (space, backslash, comma,
  178. etc.) is used like explained above.
  179.  
  180. ==============================================================================
  181. 2. Automatically setting options            *auto-setting*
  182.  
  183. Besides changing options with the ":set" command, there are three alternatives
  184. to set options automatically for one or more files:
  185.  
  186. 1. When starting Vim initializations are read from various places.  See
  187.    |initialization|.  Most of them are performed for all editing sessions,
  188.    and some of them depend on the directory where Vim is started.
  189. 2. If you start editing a new file, the automatic commands are executed.
  190.    This can be used to set options for files matching a particular pattern and
  191.    many other things.  See |autocommand|.
  192. 3. If you start editing a new file, and the 'modeline' option is on, a
  193.    number of lines at the beginning and end of the file are checked for
  194.    modelines.  This is explained here.
  195.  
  196.                             *modeline*
  197. There are two forms of modelines.  The first form:
  198.     [text]{white}{vi:|vim:|ex:}[white]{options}
  199.  
  200. [text]        any text or empty
  201. {white}        at least one white space (<Space> or <Tab>)
  202. {vi:|vim:|ex:}    the string "vi:", "vim:" or "ex:"
  203. [white]        optional white space
  204. {options}    a list of option settings, separated with white space or ':',
  205.         where each part between ':' is the argument for a ":set"
  206.         command
  207.  
  208. Example:
  209. >  vi:noai:sw=3 ts=6
  210.  
  211. The second form (this is compatible with some versions of Vi):
  212.  
  213.     [text]{white}{vi:|vim:|ex:}[white]set {options}:[text]
  214.  
  215. [text]        any text or empty
  216. {white}        at least one white space (<Space> or <Tab>)
  217. {vi:|vim:|ex:}    the string "vi:", "vim:" or "ex:"
  218. [white]        optional white space
  219. set         the string "set " (note the space)
  220. {options}    a list of options, separated with white space, which is the
  221.         argument for a ":set" command
  222. :        a colon
  223. [text]        any text or empty
  224.  
  225. Example:
  226. >  /* vim: set ai tw=75: */
  227.  
  228. The white space before {vi:|vim:|ex:} is required.  This minimizes the chance
  229. that a normal word like "lex:" is caught.  There is one exception: "vi:" and
  230. "vim:" can also be at the start of the line (for compatibility with version
  231. 3.0).  Using "ex:" at the start of the line will be ignored (this could be
  232. short for "example:").
  233.  
  234. The number of lines that are checked can be set with the 'modelines' option.
  235. If 'modeline' is off or 'modelines' is 0 no lines are checked.
  236.  
  237. Note that for the first form all of the rest of the line is used, thus a line
  238. like:
  239. >  /* vi:ts=4: */
  240. will give an error message for the trailing "*/".  This line is OK:
  241. >  /* vi:set ts=4: */
  242.  
  243. If an error is detected the rest of the line is skipped.
  244.  
  245. If you want to include a ':' in a set command precede it with a '\'.  No other
  246. commands than "set" are supported, for security reasons (somebody might create
  247. a trojan horse text file with modelines).
  248.  
  249. ==============================================================================
  250. 3. Saving settings                    *save-settings*
  251.  
  252.                             *:mk* *:mkexrc*
  253. :mk[exrc] [file]    Write current key mappings and changed options to
  254.             [file] (default ".exrc" in the current directory),
  255.             unless it already exists.  {not in Vi}
  256.  
  257. :mk[exrc]! [file]    Always write current key mappings and changed
  258.             options to [file] (default ".exrc" in the current
  259.             directory).  {not in Vi}
  260.  
  261.                             *:mkv* *:mkvimrc*
  262. :mkv[imrc][!] [file]    Like as :mkexrc, but default is ".vimrc" in the
  263.             current directory.  The ":version" command is also
  264.             written to the file.  {not in Vi}
  265.  
  266. These commands will write ":map" and ":set" commands to a file, in such a way
  267. that when these commands are executed, the current key mappings and options
  268. will be set to the same values.  The options 'columns', 'endofline', 'lines',
  269. 'modified', 'scroll', 'term' and 'ttyfast' are not included, because these are
  270. terminal or file dependent.  Note that the options 'binary', 'fileformat',
  271. 'paste' and 'readonly' are included, this might not always be what you want.
  272.  
  273. A common method is to use a default ".vimrc" file, make some modifications
  274. with ":map" and ":set" commands and write the modified file.  First read the
  275. default ".vimrc" in with a command like ":source ~piet/.vimrc.Cprogs", change
  276. the settings and then save them in the current directory with ":mkvimrc!".  If
  277. you want to make this file your default .vimrc, move it to your home directory
  278. (on Unix), s: (Amiga) or $VIM directory (MS-DOS).  You could also use
  279. autocommands |autocommand| and/or modelines |modeline|.
  280.  
  281. If you only want to add a single option setting to your vimrc, you can use
  282. these steps:
  283. 1. Edit your vimrc file with Vim.
  284. 2. Play with the option until it's right.  E.g., try out different values for
  285.    'guifont'.
  286. 3. Append a line to set the value of the option, using the expression register
  287.    '=' to enter the value.  E.g., for the 'guifont' option:
  288. >  o:set guifont=<C-R>=&guifont<CR><Esc>
  289.    [<C-R> is a CTRL-R, <CR> is a return, <Esc> is the escape key]
  290.  
  291. Note that when you create a .vimrc file, this can influence the 'compatible'
  292. option, which has several side effects.  See |'compatible'|.
  293.  
  294. ==============================================================================
  295. 4. Options summary                    *option-summary*
  296.  
  297. In the list below all the options are mentioned with their full name and with
  298. an abbreviation if there is one.  Both forms may be used.  In this document
  299. when an option that can be toggled is "set" that means that ":set option" is
  300. entered.  When an option is "reset", ":set nooption" is used.
  301.  
  302. For some options there are two default values: The "Vim default", which is
  303. used when 'compatible' is not set, and the "Vi default", which is used when
  304. 'compatible' is set.
  305.  
  306. Most options are the same in all windows and buffers.  There are a few that
  307. are specific to how the text is presented in a window.  These can be set to a
  308. different value in each window.  For example the 'list' option can be set in
  309. one window and reset in another for the same text, giving both types of view
  310. at the same time.  There are a few options that are specific to a certain
  311. file.  These can have a different value for each file or buffer.  For example
  312. the 'textwidth' option can be 78 for a normal text file and 0 for a C
  313. program.
  314.  
  315.     global            one option for all buffers and windows
  316.     local to window        each window has its own copy of this option
  317.     local to buffer        each buffer has its own copy of this option
  318.  
  319. When creating a new window the option values from the currently active window
  320. are used as a default value for the window-specific options.  For the
  321. buffer-specific options this depends on the 's' and 'S' flags in the
  322. 'cpoptions' option.  If 's' in included (which is the default) the values for
  323. buffer options are copied from the currently active buffer when a buffer is
  324. first entered.  If 'S' is present the options are copied each time the buffer
  325. is entered, this is almost like having global options.  If 's' and 'S' are not
  326. present, the options are copied from the currently active buffer when the
  327. buffer is created.
  328.  
  329. A jump table for the options with a short description can be found at |X_op|.
  330.  
  331.                     *'aleph'* *'al'*
  332. 'aleph' 'al'        number  (default 128 for MS-DOS, 224 otherwise)
  333.             global
  334.             {not in Vi}
  335.             {only available when compiled with the |+rightleft|
  336.             feature}
  337.     The ASCII code for the first letter of the Hebrew alphabet.  The
  338.     routine that maps the keyboard in Hebrew mode, both in Insert mode
  339.     (when hkmap is set) and on the command line (when hitting CTRL-_)
  340.     outputs the Hebrew characters in the range [aleph..aleph+26].
  341.     aleph=128 applies to PC code, and aleph=224 applies to ISO 8859-8.
  342.     See |rightleft.txt|.
  343.  
  344.              *'altkeymap'* *'akm'* *'noalkeymap'* *'noakm'*
  345. 'altkeymap' 'akm'    toggle  (default off)
  346.             global
  347.             {not in Vi}
  348.             {only available when compiled with the |+farsi|
  349.             feature}
  350.     When on, the second language is Farsi. In editing mode CTRL-_ toggles
  351.     the keyboard map between Farsi and English.
  352.  
  353.     When off, the keyboard map toggles between Hebrew and English. This
  354.     is useful to start the vim in native mode i.e. English (left-to-right
  355.     mode) and have default second language Farsi or Hebrew (right-to-left
  356.     mode).  See |farsi.txt|.
  357.  
  358.                    *'autoindent'* *'ai'* *'noautoindent'* *'noai'*
  359. 'autoindent' 'ai'    toggle    (default off)
  360.             local to buffer
  361.     Copy indent from current line when starting a new line (typing <CR>
  362.     in Insert mode or when using the "o" or "O" command).  If you do not
  363.     type anything on the new line except <BS> and then type <Esc> or
  364.     <CR>, the indent is deleted again.  When autoindent is on,
  365.     formatting (with the "gq" command or when you reach 'textwidth' in
  366.     Insert mode) uses the indentation of the first line.   When
  367.     'smartindent' or 'cindent' is on the indent is changed in specific
  368.     cases.  The 'autoindent' option is reset when the 'paste' option is
  369.     set.  {small difference from Vi: After the indent is deleted when
  370.     typing <Esc> or <CR>, the cursor position when moving up or down is
  371.     after the deleted indent; Vi puts the cursor somewhere in the deleted
  372.     indent}.
  373.  
  374.                  *'autowrite'* *'aw'* *'noautowrite'* *'noaw'*
  375. 'autowrite' 'aw'    toggle    (default off)
  376.             global
  377.     Write the contents of the file, if it has been modified, on each
  378.     :next, :rewind, :previous, :stop, :suspend, :tag, :!, :make, CTRL-]
  379.     and CTRL-^ command; and when a CTRL-O, CTRL-I, '<A-Z0-9>, or `<A-Z0-9>
  380.     command takes one to another file.
  381.  
  382.                             *'background'* *'bg'*
  383. 'background' 'bg'    string    (default "dark" or "light")
  384.             global
  385.             {not in Vi}
  386.     When set to "dark", Vim will try to use colors that look good on a
  387.     dark background.  When set to "light", Vim will try to use colors that
  388.     look good on a light background.  Any other value is illegal.
  389.     Vim tries to set the default value according to the terminal used.
  390.     This will not always be correct.
  391.     When starting the GUI, the default value for 'background' will be
  392.     "light".  When the value is not set in the .gvimrc, and Vim detects
  393.     that the background is actually quite dark, 'background' is set to
  394.     "dark".  But this happens only after the .gvimrc file has been read
  395.     (because the window needs to be opened to find the actual background
  396.     color).
  397.     For the Win32 GUI, setting 'background' before starting the GUI, will
  398.     change the background and foreground colors to lightgrey on black or
  399.     black on white.  On other systems setting 'background' does not
  400.     change the foreground or background colors.
  401.     Normally this option would be set in the .vimrc file.  Possibly
  402.     depending on the terminal name.  Example:
  403. >        if &term == "pcterm"
  404. >          set background=dark
  405. >        endif
  406.     When this option is set, the default settings for the highlight groups
  407.     will change.  To use other settings, place ":highlight" commands AFTER
  408.     the setting of the 'background' option.
  409.     This option is also used in the "$VIM/syntax/syntax.vim" file to set
  410.     the colors for syntax highlighting.  After changing this option, you
  411.     must load syntax.vim again to see the result.  This can be done with
  412.     ":syntax on".
  413.  
  414.                             *'backspace'* *'bs'*
  415. 'backspace' 'bs'    number    (default 0)
  416.             global
  417.             {not in Vi}
  418.     Influences the working of <BS>, <Del>, CTRL-W and CTRL-U in Insert
  419.     mode:
  420.     value    effect  ~
  421.       0    Vi compatible backspacing is used.
  422.       1    allow backspacing over <EOL>s.
  423.       2    allow backspacing over the start of insert.  CTRL-W and CTRL-U
  424.         stop once at the start of insert.
  425.     See |:fixdel| if your <BS> or <Del> key does not do what you want.
  426.  
  427.                        *'backup'* *'bk'* *'nobackup'* *'nobk'*
  428. 'backup' 'bk'        toggle    (default off)
  429.             global
  430.             {not in Vi}
  431.     Make a backup before overwriting a file.  Leave it around after the
  432.     file has been successfully written.  If you do not want to keep the
  433.     backup file, but you do want a backup while the file is being
  434.     written, reset this option and set the 'writebackup' option (this is
  435.     the default).  If you do not want a backup file at all reset both
  436.     options (use this if your file system is almost full).  See the
  437.     |backup-table| for more explanations.
  438.  
  439.                         *'backupdir'* *'bdir'*
  440. 'backupdir' 'bdir'    string    (default for Amiga: ".,t:",
  441.                  for MS-DOS and Win32: ".,c:/tmp,c:/temp"
  442.                  for Unix: ".,~/tmp,~/")
  443.             global
  444.             {not in Vi}
  445.     List of directories for the backup file, separated with commas.
  446.     - The backup file will be created in the first directory in the list
  447.       where this is possible.
  448.     - Empty means that no backup file will be created ('patchmode' is
  449.       impossible!).
  450.     - A directory "." means to put the backup file in the same directory
  451.       as the edited file.
  452.     - A directory starting with "./" (or ".\" for MS-DOS et.al.) means to
  453.       put the backup file relative to where the edited file is.  The
  454.       leading "." is replaced with the path name of the edited file.
  455.     - Spaces after the comma are ignored, other spaces are considered part
  456.       of the directory name.  To have a space at the start of a directory
  457.       name, precede it with a backslash.
  458.     - To include a comma in a directory name precede it with a backslash.
  459.     - A directory name may end in an '/'.
  460.     - Environment variables are expanded |:set_env|.
  461.     - Careful with '\' characters, type one before a space, type two to
  462.       get one in the option (see |option-backslash|), for example:
  463. >        :set bdir=c:\\tmp,\ dir\\,with\\,commas,\\\ dir\ with\ spaces
  464.     - For backwards compatibility with Vim version 3.0 a '>' at the start
  465.       of the option is removed.
  466.     See also 'backup' and 'writebackup' options.
  467.  
  468.                         *'backupext'* *'bex'*
  469. 'backupext' 'bex'    string    (default "~")
  470.             global
  471.             {not in Vi}
  472.     String which is appended to a file name to make the name of the
  473.     backup file.  The default is quite unusual, because this avoids
  474.     accidently overwriting existing files with a backup file.  You might
  475.     prefer using ".bak", but make sure that you don't have files with
  476.     ".bak" that you want to keep.
  477.  
  478.                      *'binary'* *'bin'* *'nobinary'* *'nobin'*
  479. 'binary' 'bin'        toggle    (default off)
  480.             local to buffer
  481.             {not in Vi}
  482.     This option should be set before editing a binary file.  You can also
  483.     use the "-b" Vim argument.  When this option is switched on a few
  484.     options will be changed (also when it already was on):
  485.         'textwidth'  will be set to 0
  486.         'wrapmargin' will be set to 0
  487.         'modeline'   will be off
  488.         'expandtab'  will be off
  489.     Also, 'fileformat' and 'fileformats' options will not be used, the
  490.     file is read and written like 'fileformat' was "unix" (a single <NL>
  491.     separates lines).
  492.     NOTE: When you start editing a(nother) file while the 'bin' option is
  493.     on, settings from autocommands may change the settings again (e.g.,
  494.     'textwidth'), causing trouble when editing.  You might want to set
  495.     'bin' again when the file has been loaded.
  496.     The previous values of these options are remembered and restored when
  497.     'bin' is switched from on to off.  Each buffer has its own set of
  498.     saved option values.
  499.     When writing a file the <EOL> for the last line is only written if
  500.     there was one in the original file (normally Vim appends an <EOL> to
  501.     the last line if there is none; this would make the file longer).  See
  502.     the 'endofline' option.
  503.  
  504.                    *'bioskey'* *'biosk'* *'nobioskey'* *'nobiosk'*
  505. 'bioskey' 'biosk'    toggle    (default on)
  506.             global
  507.             {not in Vi}  {Only for MS-DOS}
  508.     When on the bios is called to obtain a keyboard character.  This works
  509.     better to detect CTRL-C, but only works for the console.  When using a
  510.     terminal over a serial port reset this option.
  511.  
  512.                         *'breakat'* *'brk'*
  513. 'breakat' 'brk'        string    (default " ^I!@*-+_;:,./?")
  514.             global
  515.             {not in Vi}
  516.     This option lets you choose which characters might cause a line
  517.     break if 'linebreak' is on.
  518.  
  519.                    *'cindent'* *'cin'* *'nocindent'* *'nocin'*
  520. 'cindent' 'cin'        toggle    (default off)
  521.             local to buffer
  522.             {not in Vi}
  523.             {not available when compiled without the |+cindent|
  524.             feature}
  525.     Enables automatic C program indenting  See 'cinkeys' to set the keys
  526.     that trigger reindenting in insert mode and 'cinoptions' to set your
  527.     preferred indent style.  If 'lisp' is not on and 'equalprg' is empty,
  528.     the "=" operator indents using this algorithm rather than calling an
  529.     external program.  See |C-indenting|.  This option is switched off
  530.     when 'paste' is set.  When you don't like the way 'cindent' works, try
  531.     the 'smartindent' option.
  532.  
  533. 'cinkeys' 'cink'    string    (default "0{,0},:,0#,!^F,o,O,e")
  534.             local to buffer
  535.             {not in Vi}
  536.             {not available when compiled without the |+cindent|
  537.             feature}
  538.     A list of keys that, when typed in insert mode, cause reindenting of
  539.     the current line.  Only happens if 'cindent' is on.  See
  540.     |C-indenting|.
  541.  
  542.                         *'cinoptions'* *'cino'*
  543. 'cinoptions' 'cino'    string    (default "")
  544.             local to buffer
  545.             {not in Vi}
  546.             {not available when compiled without the |+cindent|
  547.             feature}
  548.     The 'cinoptions' affect the way 'cindent' reindents lines in a C
  549.     program.  See |C-indenting|.
  550.  
  551.                         *'cinwords'* *'cinw'*
  552. 'cinwords' 'cinw'    string    (default "if,else,while,do,for,switch")
  553.             local to buffer
  554.             {not in Vi}
  555.             {not available when compiled without both the
  556.             |+cindent| and the |+smartindent| features}
  557.     These keywords start an extra indent in the next line when
  558.     'smartindent' or 'cindent' is set.  For 'cindent' this is only done at
  559.     an appropriate place (inside {}).
  560.  
  561.                         *'cmdheight'* *'ch'*
  562. 'cmdheight' 'ch'    number    (default 1)
  563.             global
  564.             {not in Vi}
  565.     Number of lines to use for the command line.  Helps avoiding
  566.     |hit-return| prompts.
  567.  
  568.                         *'columns'* *'co'*
  569. 'columns' 'co'        number    (default 80 or terminal width)
  570.             global
  571.             {not in Vi}
  572.     Number of columns of the screen.  Normally this is set by the terminal
  573.     initialization and does not have to be set by hand.
  574.  
  575.                         *'comments'* *'com'*
  576. 'comments' 'com'    string    (default
  577.                 "sr:/*,mb:*,el:*/,://,b:#,:%,:XCOMM,n:>,fb:-")
  578.             local to buffer
  579.             {not in Vi}
  580.     A comma separated list of strings that can start a comment line.  See
  581.     |format-comments|.  See |option-backslash| about using backslashes to
  582.     insert a space.
  583.  
  584.                    *'compatible'* *'cp'* *'nocompatible'* *'nocp'*
  585. 'compatible' 'cp'    toggle    (default on, off when a .vimrc file is found)
  586.             global
  587.             {not in Vi}
  588.     This option has the function of making Vim either more Vi-compatible,
  589.     or behave in a more useful way.  This is a special kind of option,
  590.     because when it's set or reset, other options are also changed as a
  591.     side effect.  CAREFUL: Setting or resetting this option can have a lot
  592.     of unexpected effects: Mappings are interpreted in another way, undo
  593.     behaves differently, etc.
  594.     By default this option is on and the Vi defaults are used for the
  595.     options.  This default was chosen for those people who want to use Vim
  596.     just like Vi, and don't even (want to) know about the 'compatible'
  597.     option.
  598.     When a ".vimrc" file is found while Vim is starting up, this option is
  599.     switched off, and all options that have not been modified will be set
  600.     to the Vim defaults.  Effectively, this means that when a ".vimrc"
  601.     file exists, Vim will use the Vim defaults, otherwise it will use the
  602.     Vi defaults.  Also see |compatible-default|.
  603.     You can also set this option with the "-C" argument, and reset it with
  604.     "-N".  See |-C| and |-N|.
  605.     Switching this option off makes the Vim defaults be used for options
  606.     that have a different Vi and Vim default value.  See the options
  607.     marked with a '+' below.  Other options are not modified.
  608.     At the moment this option is set, several other options will be set
  609.     or reset to make Vim as Vi-compatible as possible.  See the table
  610.     below.  This can be used if you want to revert to Vi compatible
  611.     editing.
  612.     See also 'cpoptions'.
  613.  
  614.     option        + set value    effect    ~
  615.  
  616.     'backspace'      0        normal backspace
  617.     'backup'      off        no backup file
  618.     'cindent'      off        no C code indentation
  619.     'cpoptions'    + (all flags)    Vi-compatible flags
  620.     'digraph'      off        no digraphs
  621.     'esckeys'    + off        no <Esc>-keys in Insert mode
  622.     'expandtab'      off        tabs not expanded to spaces
  623.     'fileformats'    + ""        no automatic file format detection,
  624.               "dos,unix"    except for DOS, Windows and OS/2
  625.     'formatoptions'    + "vt"        Vi compatible formatting
  626.     'gdefault'      off        no default 'g' flag for ":s"
  627.     'history'    + 0        no commandline history
  628.     'hlsearch'      off        no highlighting of search matches
  629.     'incsearch'      off        no incremental searching
  630.     'insertmode'      off        do not start in Insert mode
  631.     'iskeyword'    + "@,48-57,_"    keywords contain alphanumeric
  632.                         characters and '_'
  633.     'joinspaces'      on        insert 2 spaces after period
  634.     'modeline'    + off        no modelines
  635.     'more'        + off        no pauses in listings
  636.     'revins'      off        no reverse insert
  637.     'ruler'          off        no ruler
  638.     'scrolljump'      1        no jump scroll
  639.     'scrolloff'      0        no scroll offset
  640.     'shiftround'      off        indent not rounded to shiftwidth
  641.     'showcmd'    + off        command characters not shown
  642.     'showmode'    + off        current mode not shown
  643.     'smartcase'      off        no automatic ignore case switch
  644.     'smartindent'      off        no smart indentation
  645.     'smarttab'      off        no smart tab size
  646.     'softtabstop'      0        tabs are always 'tabstop' positions
  647.     'startofline'      on        goto startofline with some commands
  648.     'tagrelative'    + off        tag file names are not relative
  649.     'textauto'    + off        no automatic textmode detection
  650.     'textwidth'      0        no automatic line wrap
  651.     'tildeop'      off        tilde is not an operator
  652.     'ttimeout'      off        no terminal timeout
  653.     'whichwrap'    + ""        left-right movements don't wrap
  654.     'wildchar'    + CTRL-E    only when the current value is <Tab>
  655.                     use CTRL-E for cmdline completion
  656.  
  657.                         *'complete'* *'cpt'*
  658. 'complete' 'cpt'    string    (default: ".,b")
  659.             global
  660.             {not in Vi}
  661.     This option specifies how keyword completion |ins-completion| works
  662.     when CTRL-P or CTRL-N are used.  It indicates the type of completion
  663.     and the places to scan.  It is a comma separated list of flags:
  664.     .    scan the current buffer.
  665.     w    scan other windows.
  666.     b    scan other loaded buffers.
  667.     u    scan the unloaded buffers.
  668.     k    scan the files given with the 'dictionary' option.
  669.     k[dict]    scan the file [dict].  Several "k" flags can be given,
  670.         patterns are valid too.  For example:
  671. >            :set cpt=k/usr/dict/*,k~/spanish
  672.     i    scan current and included files.
  673.     ]    tag completion.
  674.     t    same as "]".
  675.  
  676.     Unloaded buffers are not loaded, thus their autocmds |:autocmd| are
  677.     not executed, this may lead to unexpected completions from some files
  678.     (gziped files for example)
  679.  
  680.     A nice value is:
  681. >        :set cpt=.,b,u
  682.  
  683.     As U can see, CTRL-N and CTRL-P can be used to do any 'iskeyword'-
  684.     based expansion (eg dictionary |i_CTRL-X_CTRL-K|, include
  685.     |i_CTRL-X_CTRL-I|, tag |i_CTRL-X_CTRL-]| and normal expansions)
  686.  
  687.                         *'cpoptions'* *'cpo'*
  688. 'cpoptions' 'cpo'    string    (Vim default: "aABceFs",
  689.                  Vi default:  all flags)
  690.             global
  691.             {not in Vi}
  692.     A sequence of single character flags.  When a character is present
  693.     this indicates vi-compatible behaviour.  This is used for things where
  694.     not being vi-compatible is mostly or sometimes preferred.
  695.     'cpoptions' stands for 'compatibleoptions'.
  696.     Commas can be added for readability.
  697.  
  698.         contains    behaviour    ~
  699.         a    When included, a ":read" command with a file name
  700.             argument will set the alternate file name for the
  701.             current window.
  702.         A    When included, a ":write" command with a file name
  703.             argument will set the alternate file name for the
  704.             current window.
  705.         b    "\|" in a ":map" command is recognized as the end of
  706.             the map command.  The '\' is included in the mapping,
  707.             the text after the '|' is interpreted as the next
  708.             command.  Use a CTRL-V instead of a backslash to
  709.             include the '|' in the mapping.  Applies to all
  710.             mapping, abbreviation, menu and autocmd commands.
  711.             See also |map_bar|.
  712.         B    A backslash has no special meaning in mappings,
  713.             abbreviations and the "to" part of the menu commands.
  714.             Remove this flag to be able to use a backslash like a
  715.             CTRL-V.  This flag must be removed to be able to fully
  716.             use the <> notation.  For example, the command
  717.             ":map X \<Esc>" results in X being mapped to:
  718.                 'B' included:    "\^["    (^[ is a real <Esc>)
  719.                 'B' excluded:   "<Esc>"  (5 characters)
  720.                 ('<' excluded in both cases)
  721.         <    Disable the recognition of special key codes in |<>|
  722.             form in mappings, abbreviations, and the "to" part of
  723.             menu commands.  For example, the command
  724.             ":map X <Tab>" results in X being mapped to:
  725.                 '<' included:   "<Tab>"  (5 characters)
  726.                 '<' excluded:   "^I"     (^I is a real <Tab>)
  727.             Also see the 'k' flag below.
  728.         c    Searching continues at the end of any match at the
  729.             cursor position.  When not present searching continues
  730.             one character from the cursor position.  With 'c'
  731.             "abababababab" only gets three matches when repeating
  732.             "/abab", without 'c' there are five matches.
  733.         d    Using "./" in the 'tags' option doesn't mean to use
  734.             the tags file relative to the current file, but the
  735.             tags file in the current directory.
  736.         e    When executing a register with ":@r", always add a
  737.             <CR> to the last line, also when the register is not
  738.             linewise.  If this flag is not present, the register
  739.             is not linewise and the last line does not end in a
  740.             <CR>, then the last line is put on the command line
  741.             and can be edited before hitting <CR>.
  742.         E    It is an error when using "y", "d", "c", "g~", "gu" or
  743.             "gU" on an Empty region.  The operators only work when
  744.             at least one character is to be operate on.  Example:
  745.             This makes "y0" fail in the first column.
  746.         f    When included, a ":read" command with a file name
  747.             argument will set the file name for the current buffer,
  748.             if the current buffer doesn't have a file name yet.
  749.         F    When included, a ":write" command with a file name
  750.             argument will set the file name for the current
  751.             buffer, if the current buffer doesn't have a file name
  752.             yet.
  753.         j    When joining lines, only add two spaces after a '.',
  754.             not after '!' or '?'.  Also see 'joinspaces'.
  755.         k    Disable the recognition of raw key codes in
  756.             mappings, abbreviations, and the "to" part of menu
  757.             commands.  For example, if <Key> sends ^[OA (where ^[
  758.             is <Esc>), the command ":map X ^[OA" results in X
  759.             being mapped to:
  760.                 'k' included:   "^[OA"   (3 characters)
  761.                 'k' excluded:   "<Key>"  (one key code)
  762.             Also see the '<' flag above.
  763.         l    Backslash in a [] range in a search pattern is taken
  764.             literally, only "\]" is special  See |/[]|
  765.                'l' included: "/[ \t]"  finds <Space>, '\' and 't'
  766.                'l' excluded: "/[ \t]"  finds <Space> and <Tab>
  767.         L    When the 'list' option is set, 'wrapmargin' and
  768.             'textwidth' count a <Tab> as two characters, instead
  769.             of the normal behaviour of a <Tab>.
  770.         m    When included, a showmatch will always wait half a
  771.             second.  When not included, a showmatch will wait half
  772.             a second or until a character is typed.  |'showmatch'|
  773.         o    Line offset to search command is not remembered for
  774.             next search.
  775.         r    Redo ("." command) uses "/" to repeat a search
  776.             command, instead of the actually used search string.
  777.         s    Set buffer options when entering the buffer for the
  778.             first time.  This is like it is in Vim version 3.0.
  779.             And it is the default.  If not present the options are
  780.             set when the buffer is created.
  781.         S    Set buffer options always when entering a buffer
  782.             (except 'readonly' and 'fileformat').  This is the
  783.             (most) Vi compatible setting.
  784.             The options are set to the values in the current
  785.             buffer.  When you change an option and go to another
  786.             buffer, the value is copied.  Effectively makes the
  787.             buffer options global to all buffers.
  788.  
  789.             's'    'S'     copy buffer options
  790.             no     no      when buffer created
  791.             yes    no      when buffer first entered (default)
  792.              X     yes     each time when buffer entered (vi comp.)
  793.  
  794.         t    Search pattern for the tag command is remembered for
  795.             "n" command.  Otherwise Vim only puts the pattern in
  796.             the history for search pattern, but doesn't change the
  797.             last used search pattern.
  798.         u    Undo is Vi compatible.  See |undo-two-ways|.
  799.         w    When using "cw" on a blank character, only change one
  800.             character and not all blanks until the start of the
  801.             next word.
  802.         W    Don't overwrite a readonly file.  When omitted, ":w!"
  803.             overwrites a readonly file, if possible.
  804.         x    <Esc> on the command line executes the command line.
  805.             The default in Vim is to abandon the command line,
  806.             because <Esc> normally aborts a command.  |c_<Esc>|
  807.         $    When making a change to one line, don't redisplay the
  808.             line, but put a '$' at the end of the changed text.
  809.             The changed text will be overwritten when you type the
  810.             new text.  The line is redisplayed if you type any
  811.             command that moves the cursor from the insertion
  812.             point.
  813.         !    When redoing a filter command, use the last used
  814.             external command, whatever it was.  Otherwise the last
  815.             used -filter- command is used.
  816.         %    Vi-compatible matching is done for the "%" command.
  817.             Does not recognize "#if", "#endif", etc.
  818.             Does not recognize "/*" and "*/".
  819.             Parens inside single and double quotes are also
  820.             counted, causing a string that contains a paren to
  821.             disturb the matching.  For example, in a line like
  822.             "if (strcmp("foo(", s))" the first paren does not
  823.             match the last one.  When this flag is not included,
  824.             parens inside single and double quotes are treated
  825.             specially.  When matching a paren outside of quotes,
  826.             everything inside quotes is ignored.  When matching a
  827.             paren inside quotes, it will find the matching one (if
  828.             there is one).  This works very well for C programs.
  829.  
  830.                         *'define'* *'def'*
  831. 'define' 'def'        string    (default "^#\s*define")
  832.             global
  833.             {not in Vi}
  834.     Pattern to be used to find a macro definition.  It is a search
  835.     pattern, just like for the "/" command.  This option is used for the
  836.     commands like "[i" and "[d" |include-search|.  The 'isident' option is
  837.     used to recognize the identifier name after the match.  See
  838.     |option-backslash| about inserting backslashes to include a space or
  839.     backslash.
  840.     The default value is for C programs.  For C++ this value would be
  841.     useful, to include const type declarations:
  842. >        ^\(#\s*define\|[a-z]*\s*const\s*[a-z]*\)
  843.     When using the ":set" command, you need to double the backslashes!
  844.  
  845.                         *'dictionary'* *'dict'*
  846. 'dictionary' 'dict'    string    (default "")
  847.             global
  848.             {not in Vi}
  849.     List of file names, separated by commas, that are used to lookup words
  850.     for keyword completion commands |i_CTRL-X_CTRL-K|.  Each file should
  851.     contain a list of words.  This can be one word per line, or several
  852.     words per line, separated by non-keyword characters (white space is
  853.     preferred).
  854.     To include a comma in a file name precede it with a backslash.  Spaces
  855.     after a comma are ignored, otherwise spaces are included in the file
  856.     name.  See |option-backslash| about using backslashes.
  857.     Where to find a list of words?
  858.     - On FreeBSD, there is the file "/usr/share/dict/words".
  859.     - In the Simtel archive, look in the "msdos/linguist" directory.
  860.     - In "miscfiles" of the GNU collection.
  861.  
  862.                      *'digraph'* *'dg'* *'nodigraph'* *'nodg'*
  863. 'digraph' 'dg'        toggle    (default off)
  864.             global
  865.             {not in Vi}
  866.             {not available when compiled without the |+digraphs|
  867.             feature}
  868.     Enable the entering of digraphs in Insert mode with {char1} <BS>
  869.     {char2}.  See |digraphs|.
  870.  
  871.                         *'directory'* *'dir'*
  872. 'directory' 'dir'    string    (default for Amiga: ".,t:",
  873.                  for MS-DOS and Win32: ".,c:\tmp,c:\temp"
  874.                  for Unix: ".,~/tmp,/tmp")
  875.             global
  876.     List of directory names for the swap file, separated with commas.
  877.     - The swap file will be created in the first directory where this is
  878.       possible.
  879.     - Empty means that no swap file will be used (recovery is
  880.       impossible!).
  881.     - A directory "." means to put the swap file in the same directory as
  882.       the edited file.  On Unix, a dot is prepended to the file name, so
  883.       it doesn't show in a directory listing.
  884.     - A directory starting with "./" (or ".\" for MS-DOS et.al.) means to
  885.       put the swap file relative to where the edited file is.  The leading
  886.       "." is replaced with the path name of the edited file.
  887.     - Spaces after the comma are ignored, other spaces are considered part
  888.       of the directory name.  To have a space at the start of a directory
  889.       name, precede it with a backslash.
  890.     - To include a comma in a directory name precede it with a backslash.
  891.     - A directory name may end in an ':' or '/'.
  892.     - Environment variables are expanded |:set_env|.
  893.     - Careful with '\' characters, type one before a space, type two to
  894.       get one in the option (see |option-backslash|), for example:
  895. >        :set dir=c:\\tmp,\ dir\\,with\\,commas,\\\ dir\ with\ spaces
  896.     - For backwards compatibility with Vim version 3.0 a '>' at the start
  897.       of the option is removed.
  898.     Using "." first in the list is recommended.  This means that editing
  899.     the same file twice will result in a warning.  Using "/tmp" on Unix is
  900.     discouraged, when the system crashes you lose the swap file.  That is
  901.     why a "tmp" directory in your home directory is used first.
  902.     {Vi: directory to put temp file in, defaults to "/tmp"}
  903.  
  904.                *'ed'* *'edcompatible'* *'noed'* *'noedcompatible'*
  905. 'edcompatible' 'ed'    toggle    (default off)
  906.             global
  907.     Makes the 'g' and 'c' flags of the ":substitute" command to be
  908.     toggled each time the flag is given.  See |complex-change|.  See
  909.     also 'gdefault' option.
  910.  
  911.                    *'endofline'* *'eol'* *'noendofline'* *'noeol'*
  912. 'endofline' 'eol'    toggle    (default on)
  913.             local to buffer
  914.             {not in Vi}
  915.     When writing a file and this option is off and the 'binary' option
  916.     is on, no <EOL> will be written for the last line in the file.  This
  917.     option is automatically set when starting to edit a new file, unless
  918.     the file does not have an <EOL> for the last line in the file, in
  919.     which case it is reset.  Normally you don't have to set or reset this
  920.     option.  When 'binary' is off the value is not used when writing the
  921.     file.  When 'binary' is on it is used to remember the presence of a
  922.     <EOL> for the last line in the file, so that when you write the file
  923.     the situation from the original file can be kept.  But you can change
  924.     it if you want to.
  925.  
  926.                  *'equalalways'* *'ea'* *'noequalalways'* *'noea'*
  927. 'equalalways' 'ea'    toggle    (default on)
  928.             global
  929.             {not in Vi}
  930.     When on all the windows are automatically made the same size after
  931.     splitting or closing a window.  When off, splitting a window will
  932.     reduce the size of the current window and leave the other windows the
  933.     same.  When closing a window the extra lines are given the the window
  934.     above it.
  935.  
  936.                         *'equalprg'* *'ep'*
  937. 'equalprg' 'ep'        string    (default "")
  938.             global
  939.             {not in Vi}
  940.     External program to use for "=" command.  When this option is empty
  941.     the internal formatting functions are used ('lisp' or 'cindent').
  942.     Environment variables are expanded |:set_env|.  See |option-backslash|
  943.     about including spaces and backslashes.
  944.  
  945.                    *'errorbells'* *'eb'* *'noerrorbells'* *'noeb'*
  946. 'errorbells' 'eb'    toggle    (default off)
  947.             global
  948.     Ring the bell (beep or screen flash) for error messages.  This only
  949.     makes a difference for error messages, the bell will be used always
  950.     for a lot of errors without a message (e.g., hitting <Esc> in Normal
  951.     mode).  See 'visualbell' on how to make the bell behave like a beep,
  952.     screen flash or do nothing.
  953.  
  954.                         *'errorfile'* *'ef'*
  955. 'errorfile' 'ef'    string    (Amiga default: "AztecC.Err",
  956.                     others: "errors.err")
  957.             global
  958.             {not in Vi}
  959.             {not available when compiled without the |+quickfix|
  960.             feature}
  961.     Name of the errorfile for the QuickFix mode (see |:cf|).
  962.     When the "-q" command line argument is used, 'errorfile' is set to the
  963.     following argument.  See |-q|.
  964.     NOT used for the ":make" command.  See 'makeef' for that.
  965.     Environment variables are expanded |:set_env|.
  966.     See |option-backslash| about including spaces and backslashes.
  967.  
  968.                         *'errorformat'* *'efm'*
  969. 'errorformat' 'efm'    string    (default is very long)
  970.             global
  971.             {not in Vi}
  972.             {not available when compiled without the |+quickfix|
  973.             feature}
  974.     Scanf-like description of the format for the lines in the error file
  975.     (see |errorformat|).
  976.  
  977.                      *'esckeys'* *'ek'* *'noesckeys'* *'noek'*
  978. 'esckeys' 'ek'        toggle    (Vim default: on, Vi default: off)
  979.             global
  980.             {not in Vi}
  981.     Function keys that start with an <Esc> are recognized in Insert
  982.     mode.  When this option is off, the cursor and function keys cannot be
  983.     used in Insert mode if they start with an <Esc>.  The advantage of
  984.     this is that the single <Esc> is recognized immediately, instead of
  985.     after one second.  Instead of resetting this option, you might want to
  986.     try changing the values for 'timeoutlen' and 'ttimeoutlen'.  Note that
  987.     when 'esckeys' is off, you can still map anything, but the cursor keys
  988.     won't work by default.
  989.  
  990.                         *'eventignore'* *'ei'*
  991. 'eventignore' 'ei'    string    (default "")
  992.             global
  993.             {not in Vi}
  994.     A list of autocommand event names, which are to be ignored.
  995.     When set to "all", all autocommand events are ignored, autocommands
  996.     will not be executed.
  997.     Otherwise this is a comma separated list of event names.  Example:
  998. >        :set ei=WinEnter,WinLeave
  999.  
  1000.                  *'expandtab'* *'et'* *'noexpandtab'* *'noet'*
  1001. 'expandtab' 'et'    toggle    (default off)
  1002.             local to buffer
  1003.             {not in Vi}
  1004.     In Insert mode: Use the appropriate number of spaces to insert a
  1005.     <Tab>.  Spaces are used in indents with the '>' and '<' commands and
  1006.     when 'autoindent' is on.  To insert a real tab when 'expandtab' is
  1007.     on, use CTRL-V<Tab>.  See also |:retab| and |ins-expandtab|.
  1008.  
  1009.                     *'exrc'* *'ex'* *'noexrc'* *'noex'*
  1010. 'exrc' 'ex'        toggle (default off)
  1011.             global
  1012.             {not in Vi}
  1013.     Enables the reading of .vimrc, .exrc and .gvimrc in the current
  1014.     directory.  If you switch this option on you should also consider
  1015.     setting the 'secure' option (see |initialization|).  Using a local
  1016.     .exrc, .vimrc or .gvimrc is a potential security leak, use with care!
  1017.     also see |.vimrc| and |gui-init|.
  1018.  
  1019.                     *'fileformat'* *'ff'*
  1020. 'fileformat' 'ff'    string (DOS, Win32, OS/2 default: "dos",
  1021.                 Unix default: "unix",
  1022.                 Macintosh default: "mac")
  1023.             local to buffer
  1024.             {not in Vi}
  1025.     This gives the <EOL> of the current buffer, which is used for
  1026.     reading/writing the buffer from/to a file:
  1027.         dos        <CR> <NL>
  1028.         unix    <NL>
  1029.         mac        <CR>
  1030.     When "dos" is used, CTRL-Z at the end of a file is ignored.
  1031.     See |file-formats| and |file-read|.
  1032.     When 'binary' is set, the value of 'fileformat' is ignored, file I/O
  1033.     works like it was set to "unix'.
  1034.     This option is set automatically when starting to edit a file and
  1035.     'fileformats' is not empty and 'binary' is off.
  1036.     When this option is set, after starting to edit a file, the 'modified'
  1037.     option is set, because the file would be different when written.
  1038.     For backwards compatibility: When this option is set to "dos",
  1039.     'textmode' is set, otherwise 'textmode' is reset.
  1040.  
  1041.                     *'fileformats'* *'ffs'*
  1042. 'fileformats' 'ffs'    string (Vim+Vi    DOS, Win32, OS/2 default: "dos,unix",
  1043.                 Vim    Unix default: "unix,dos",
  1044.                 Vim    Mac default: "mac,unix,dos",
  1045.                 Vi    others default: "")
  1046.             global
  1047.             {not in Vi}
  1048.     This gives the end-of-line (<EOL>) formats that will be tried.  It is
  1049.     used when starting to edit a new buffer and when reading a file into
  1050.     an existing buffer:
  1051.     - When empty, the format defined with 'fileformat' will be used
  1052.       always.  It is not set automatically.
  1053.     - When set to one name, that format will be used whenever a new buffer
  1054.       is opened.  'fileformat' is set accordingly for that buffer.  The
  1055.       'fileformats' name will be used when a file is read into an existing
  1056.       buffer, no matter what 'fileformat' for that buffer is set to.
  1057.     - When more than one name is present, separated by commas, automatic
  1058.       <EOL> detection will be done when reading a file.  When starting to
  1059.       edit a file, a check is done for the <EOL>:
  1060.       1. If all lines end in <CR><NL>, and 'fileformats' includes "dos",
  1061.          'fileformat' is set to "dos".
  1062.       2. If a <NL> is found and 'fileformats' includes "unix, 'fileformat'
  1063.          is set to "unix".  Note that when a <NL> is found without a
  1064.          preceding <CR>, "unix" is prefered over "dos".
  1065.       3. If 'fileformats' includes "mac", 'fileformat' is set to "mac".
  1066.          This means that "mac" is only choosen when "unix" is not present,
  1067.          or when no <NL> is found in the file, and when "dos" is not
  1068.          present, or no <CR><NL> is present in the file.
  1069.       4. If 'fileformat' is still not set, the first name from
  1070.          'fileformats' is used.
  1071.       When reading a file into an existing buffer, the same is done, but
  1072.       this happens like 'fileformat' has been set appropriately for that
  1073.       file only, the option is not changed.
  1074.     When 'binary' is set, the value of 'fileformats' is not used.
  1075.  
  1076.     For systems with a Dos-like <EOL> (<CR><NL>), when reading files that
  1077.     are ":source"ed and for vimrc files, automatic <EOL> detection may be
  1078.     done:
  1079.     - When 'fileformats' is empty, there is no automatic detection.  Dos
  1080.       format will be used.
  1081.     - When 'fileformats' is set to one or more names, automatic detection
  1082.       is done.  This is based on the first <NL> in the file: If there is a
  1083.       <CR> in front of it, Dos format is used, otherwise Unix format is
  1084.       used.
  1085.     Also see |file-formats|.
  1086.     For backwards compatibility: When this option is set to an empty
  1087.     string or one format (no comma is included), 'textauto' is reset,
  1088.     otherwise 'textauto' is set.
  1089.  
  1090.                      *'fkmap'* *'fk'* *'nofkmap'* *'nofk'*
  1091. 'fkmap' 'fk'        toggle  (default off)
  1092.             global
  1093.             {not in Vi}
  1094.             {only available when compiled with the |+rightleft|
  1095.             feature}
  1096.     When on, the keyboard is mapped for the Farsi character set.
  1097.     Normally you would use CTRL-_ in insert mode to toggle this option.
  1098.     See |farsi.txt|.
  1099.  
  1100.                     *'formatoptions'* *'fo'*
  1101. 'formatoptions' 'fo'    string (Vim default: "tcq", Vi default: "vt")
  1102.             local to buffer
  1103.             {not in Vi}
  1104.     This is a sequence of letters which describes how automatic
  1105.     formatting is to be done.  See |fo-table|.  When the 'paste' option is
  1106.     on, no formatting is done (like 'formatoptions' is empty).  Commas can
  1107.     be inserted for readability.
  1108.  
  1109.                         *'formatprg'* *'fp'*
  1110. 'formatprg' 'fp'    string (default "")
  1111.             global
  1112.             {not in Vi}
  1113.     The name of an external program that will be used to format the lines
  1114.     selected with the "gq" command.  The program must take the input on
  1115.     stdin and produce the output on stdout.  The Unix program "fmt" is
  1116.     such a program.  If this option is an empty string, the internal
  1117.     format function will be used |C-indenting|.  Environment variables are
  1118.     expanded |:set_env|.  See |option-backslash| about including spaces
  1119.     and backslashes.
  1120.  
  1121.                    *'gdefault'* *'gd'* *'nogdefault'* *'nogd'*
  1122. 'gdefault' 'gd'        toggle    (default off)
  1123.             global
  1124.             {not in Vi}
  1125.     When on, the ":substitute" flag 'g' is default on.  This means that
  1126.     all matches in a line are substituted instead of one.  When a 'g' flag
  1127.     is given to a ":substitute" command, this will toggle the substitution
  1128.     of all or one match.  See |complex-change|.
  1129.  
  1130.         command        'gdefault' on    'gdefault' off    ~
  1131.         :s///          subst. all      subst. one
  1132.         :s///g          subst. one      subst. all
  1133.         :s///gg          subst. all      subst. one
  1134.  
  1135.                         *'guicursor'* *'gcr'*
  1136. 'guicursor' 'gcr'    string  (default "n-v-c:block-Cursor,o:hor50-Cursor,
  1137.                       i-ci:ver25-Cursor,r-cr:hor20-Cursor,
  1138.                       sm:block-Cursor-blinkwait175-
  1139.                       blinkoff150-blinkon175")
  1140.             global
  1141.             {not in Vi}
  1142.             {Only available when compiled with GUI enabled}
  1143.     This option tells Vim what the cursor should look like in different
  1144.     modes.  The option is a comma separated list of parts.  Each part
  1145.     consist of a mode-list and an argument-list:
  1146.         mode-list:argument-list,mode-list:argument-list,..
  1147.     The mode-list is a dash separated list of these modes:
  1148.         n    Normal mode
  1149.         v    Visual mode
  1150.         o    Operator-pending mode
  1151.         i    Insert mode
  1152.         r    Replace mode
  1153.         c    Command line Normal (append) mode
  1154.         ci    Command line Insert mode
  1155.         cr    Command line Replace mode
  1156.         sm    showmatch in Insert mode
  1157.         a    all modes
  1158.     The argument-list is a dash separated list of these arguments:
  1159.         hor{N}    horizontal bar, {N} percent of the character height
  1160.         ver{N}    vertical bar, {N} percent of the character width
  1161.         block    block cursor, fills the whole character
  1162.             [only one of the above three should be present]
  1163.         blinkwait{N}                *cursor-blinking*
  1164.         blinkon{N}
  1165.         blinkoff{N}
  1166.             blink times for cursor: blinkwait is the delay before
  1167.             the cursor starts blinking, blinkon is the time that
  1168.             the cursor is shown and blinkoff is the time that the
  1169.             cursor is not shown.  The times are in msec.  When one
  1170.             of the numbers is zero, there is no blinking.  The
  1171.             default is: "blinkwait700-blinkon400-blinkoff250".
  1172.             These numbers are used for a missing entry.  This
  1173.             means that blinking is enabled by default.  To switch
  1174.             blinking off you can use "blinkon0".  The cursor only
  1175.             blinks when Vim is waiting for input, not while
  1176.             executing a command.
  1177.             To make the cursor blink in an xterm, see
  1178.             tools/blink.c.
  1179.         {group-name}
  1180.             a highlight group name, that sets the color and font
  1181.             for the cursor
  1182.     Examples of parts:
  1183.        n-c-v:block-nCursor    in Normal, Command-lne and Visual mode, use a
  1184.                 block cursor with colors from the "nCursor"
  1185.                 highlight group
  1186.        i-ci:ver30-iCursor-blinkwait300-blinkon200-blinkoff150
  1187.                 In Insert and Command-line Insert mode, use a
  1188.                    30% vertical bar cursor with colors from the
  1189.                 "iCursor" highlight group.  Blink a bit
  1190.                 faster.
  1191.  
  1192.     The 'a' mode is different.  It will set the given argument-list for
  1193.     all modes.  It does not reset anything to defaults.  This can be used
  1194.     to do awcommon setting for all modes.  For example, to switch off
  1195.     blinking: "a:blinkon0"
  1196.  
  1197.     Examples of cursor highlighting:
  1198. >        :highlight Cursor gui=reverse guifg=NONE guibg=NONE
  1199. >        :highlight Cursor gui=NONE guifg=bg guibg=fg
  1200.  
  1201.                         *'guifont'* *'gfn'*
  1202. 'guifont' 'gfn'        string  (default "")
  1203.             global
  1204.             {not in Vi}
  1205.             {Only available when compiled with GUI enabled}
  1206.     This is a list of fonts which should be tried when starting the GUI
  1207.     version of vim.  The fonts are separated with commas.  Spaces after a
  1208.     comma are ignored.  To include a comma in a font name precede it with
  1209.     a backslash.  Setting an option requires an extra backslash before a
  1210.     space and a backslash.  See also |option-backslash|.  For example:
  1211. >        :set guifont=Screen15,\ 7x13,font\\,with\\,commas
  1212.     will make vim try to use the font "Screen15" first, and if it fails
  1213.     it will try to use "7x13" and then "font,with,commas" instead.
  1214.     Win32 only:
  1215. >        :set guifont=*
  1216.     will bring up a font requester, where you can pick the font you want.
  1217.     If none of the fonts can be loaded, vim will try using other resource
  1218.     settings (for X, it will use the Vim.font resource), and finally it
  1219.     will try some builtin default which should always be there ("7x13" in
  1220.     the case of X).  The font names given should be "normal" fonts.  Vim
  1221.     will try to find the related bold and italic fonts.
  1222.     For the Win32 GUI
  1223.     - takes these options in the font name:
  1224.         hXX - height is XX (points)
  1225.         wXX - width is XX (points)
  1226.         b   - bold
  1227.         i   - italic
  1228.         u   - underline
  1229.         s   - strikeout
  1230.       Use a ':' to separate the options.
  1231.     - A '_' can be used in the place of a space, so you don't need to use
  1232.       backslashes to escape the spaces.
  1233.     - Example:
  1234. >        :set guifont=courier_new:h12:w5:b
  1235.     See also |font-sizes|.
  1236.  
  1237.                         *'guioptions'* *'go'*
  1238. 'guioptions' 'go'    string  (default "agmr" (Unix) or "gmr")
  1239.             global
  1240.             {not in Vi}
  1241.             {Only available when compiled with GUI enabled}
  1242.     This option only has an effect in the GUI version of vim.  It is a
  1243.     sequence of letters which describes what components and options of the
  1244.     GUI should be used.  Valid letters are as follows:
  1245.  
  1246.       'a'    Autoselect:  If present, then whenever VISUAL mode is started,
  1247.         or the Visual area extended, Vim tries to become the owner of
  1248.         the windowing system's global selection.  This means that the
  1249.         Visually highlighted text is available for pasting into other
  1250.         applications as well as into Vim itself.  When the Visual mode
  1251.         ends, possibly due to an operation on the text, or when an
  1252.         application wants to paste the selection, the highlighted text
  1253.         is automatically yanked into the <"*> selection register.
  1254.         Thus the selection is still available for pasting into other
  1255.         applications after the VISUAL mode has ended.
  1256.             If not present, then Vim won't become the owner of the
  1257.         windowing system's global selection unless explicitly told to
  1258.         by a yank or delete operation.
  1259.  
  1260.       'f'    Foreground: Don't use fork() to detatch the GUI from the shell
  1261.         where it was started.  Use this for programs that wait for the
  1262.         editor to finish (e.g., an e-mail program).  Altenatively you
  1263.         can use "gvim -f" or ":gui -f" to start the GUI in the
  1264.         foreground.  |gui-fork|
  1265.  
  1266.       'm'    Menu bar is present when 'm' is included.
  1267.       'g'    Grey menu items: Make menu items that are not active grey.  If
  1268.         'g' is not included inactive menu items are not shown at all.
  1269.  
  1270.       'r'    Right-hand scrollbar is present when 'r' is included.
  1271.       'l'    Left-hand scrollbar is present when 'l' is included.
  1272.       'b'    Bottom (horizontal) scrollbar is present when 'b' is included.
  1273.  
  1274.     And yes, you may even have scrollbars on the left AND the right if
  1275.     you really want to :-).  See |gui-scrollbars| for more information.
  1276.  
  1277.                         *'guipty'* *'noguipty'*
  1278. 'guipty'        toggle    (default on)
  1279.             global
  1280.             {not in Vi}
  1281.             {Only available when compiled with GUI enabled}
  1282.     Only in the GUI: If on, an attempt is made to open a pseudo-tty for
  1283.     I/O to/from shell commands.  See |gui-pty|.
  1284.  
  1285.                     *'helpfile'* *'hf'*
  1286. 'helpfile' 'hf'        string    (default (Amiga) "vim:doc/help.txt"
  1287.                      (MSDOS) "$VIM\doc\help.txt"
  1288.                       (others) "$VIM/doc/help.txt")
  1289.             global
  1290.             {not in Vi}
  1291.     Name of the help file.  All help files should be placed together in
  1292.     one directory.  Environment variables are expanded |:set_env|.  For
  1293.     example: "$VIM/doc/help.txt".  If $VIM is not set, $HOME is also
  1294.     tried.  Also see |$VIM|.  |option-backslash| about including spaces
  1295.     and backslashes.
  1296.  
  1297.                         *'helpheight'* *'hh'*
  1298. 'helpheight' 'hh'    number    (default 20)
  1299.             global
  1300.             {not in Vi}
  1301.     Minimal initial height of the help window when it is opened with the
  1302.     ":help" command.  The initial height of the help window is half of the
  1303.     current window, or (when the 'ea' option is on) the same as other
  1304.     windows.  When the height is less than 'helpheight', the height is
  1305.     set to 'helpheight'.  Set to zero to disable.
  1306.  
  1307.                      *'hidden'* *'hid'* *'nohidden'* *'nohid'*
  1308. 'hidden' 'hid'        toggle    (default off)
  1309.             global
  1310.             {not in Vi}
  1311.     When off the current buffer is unloaded when it is abandoned.  When
  1312.     on the current buffer becomes hidden when starting to edit another
  1313.     buffer.  If the current buffer is also displayed in another window it
  1314.     does not become hidden, of course.  The commands that move through the
  1315.     buffer list sometimes make the current buffer hidden although the
  1316.     'hidden' option is off: When the buffer is modified, 'autowrite' is
  1317.     off or writing is not possible, and the '!' flag was used.  See also
  1318.     |windows.txt|.
  1319.  
  1320.                         *'highlight'* *'hl'*
  1321. 'highlight' 'hl'    string    (default (split in pieces):
  1322.                      "8:SpecialKey,@:NonText,d:Directory,
  1323.                      e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg,
  1324.                      M:ModeMsg,n:LineNr,r:Question,
  1325.                      s:StatusLine,t:Title,
  1326.                      v:Visual,w:WarningMsg")
  1327.             global
  1328.             {not in Vi}
  1329.     This option can be used to set highlighting mode for various
  1330.     occasions.  It is a comma separated list of character pairs.  The
  1331.     first character in a pair gives the occasion, the second the mode to
  1332.     use for that occasion.  The occasions are:
  1333.     |hl-SpecialKey|     8  Meta & special keys listed with ":map"
  1334.     |hl-NonText|     @  '~' and '@' at the end of the window and
  1335.                 characters from 'showbreak'
  1336.     |hl-Directory|     d  directories in CTRL-D listing and other special
  1337.                 things in listings
  1338.     |hl-ErrorMsg|     e  error messages
  1339.              h  (obsolete, ignored)
  1340.     |hl-IncSearch|     i  'incsearch' highlighting
  1341.     |hl-Search|     l  last search pattern highlighting (see 'hlsearch')
  1342.     |hl-MoreMsg|     m  |more-prompt|
  1343.     |hl-ModeMsg|     M  Mode (e.g., "-- INSERT --")
  1344.     |hl-LineNr|     n  line number for ":number" and ":#" commands
  1345.     |hl-Question|     r  |hit-return| prompt and yes/no questions
  1346.     |hl-StatusLine|     s  status lines
  1347.     |hl-Title|     t  Titles for output from ":set all", ":autocmd" etc.
  1348.     |hl-Visual|     v  Visual mode
  1349.     |hl-WarningMsg|     w  warning messages
  1350.  
  1351.     The display modes are:
  1352.         r    reverse        (termcap entry "mr" and "me")
  1353.         i    italic        (termcap entry "ZH" and "ZR")
  1354.         b    bold        (termcap entry "md" and "me")
  1355.         s    standout    (termcap entry "so" and "se")
  1356.         u    underline    (termcap entry "us" and "ue")
  1357.         n    no highlighting
  1358.         -    no highlighting
  1359.         :    use a highlight group
  1360.     The default is used for occasions that are not included.
  1361.     If you want to change what the display modes do, see |dos-colors|
  1362.     for an example.
  1363.     When using the ':' display mode, this must be followed by the name of
  1364.     a highlight group.  A highlight group can be used to define any type
  1365.     of highlighting, including using color.  See |:highlight| on how to
  1366.     define one.  The default uses a different group for each occasion.
  1367.     See |highlight-default| for the default highlight groups.
  1368.  
  1369.                  *'hlsearch'* *'hls'* *'nohlsearch'* *'nohls'*
  1370. 'hlsearch' 'hls'    toggle    (default off)
  1371.             global
  1372.             {not in Vi}
  1373.             {not available when compiled without the
  1374.             |+extra_search| feature}
  1375.     When there is a previous search pattern, highlight all its matches.
  1376.     The type of highlighting used can be set with the 'l' occasion in the
  1377.     'highlight' option.  This uses the "Search" highlight group by
  1378.     default.  Note that only the matching text is highlighted, any offsets
  1379.     are not applied.
  1380.     See also: 'incsearch'.
  1381.     When you switch this option on and off very often, it's a good idea to
  1382.     make a mapping for this.  Example:
  1383. >        :map <F7> :set hls!<CR>
  1384.     Here is a mapping that also echoes the current value:
  1385. >        :map <F7> :set hls!<CR><Bar>:echo "HLSearch: " . strpart("OffOn", 3 * &hlsearch, 3)<CR>
  1386.  
  1387.                         *'history'* *'hi'*
  1388. 'history' 'hi'        number    (Vim default: 20, Vi default: 0)
  1389.             global
  1390.             {not in Vi}
  1391.     A history of ":" commands, and a history of previous search patterns
  1392.     are remembered.  This option decides how many entries may be stored in
  1393.     each of these histories (see |cmdline-editing|).
  1394.  
  1395.                      *'hkmap'* *'hk'* *'nohkmap'* *'nohk'*
  1396. 'hkmap' 'hk'        toggle  (default off)
  1397.             global
  1398.             {not in Vi}
  1399.             {only available when compiled with the |+rightleft|
  1400.             feature}
  1401.     When on, the keyboard is mapped for the Hebrew character set.
  1402.     Normally you would use CTRL-_ in insert mode to toggle this option.
  1403.     See |rightleft.txt|.
  1404.  
  1405.                  *'hkmapp'* *'hkp'* *'nohkmapp'* *'nohkp'*
  1406. 'hkmapp' 'hkp'        toggle  (default off)
  1407.             global
  1408.             {not in Vi}
  1409.             {only available when compiled with the |+rightleft|
  1410.             feature}
  1411.     When on, phonetic keyboard mapping is used.  'hkmap' must also be on.
  1412.     This is useful if you have a non-Hebrew keyboard.
  1413.     See |rightleft.txt|.
  1414.  
  1415.                         *'icon'* *'noicon'*
  1416. 'icon'            toggle    (default off, on when title can be restored)
  1417.             global
  1418.             {not in Vi}
  1419.     When on the icon of the window will be set to the name of the file
  1420.     currently being edited.  Only the last part of the name is used.
  1421.     Overridden by the 'iconstring' option.
  1422.     Only works if the terminal supports setting window icons (currently
  1423.     only Unix xterm and iris-ansi).  When Vim was compiled with HAVE_X11
  1424.     defined, the original icon will be restored if possible |X11|.
  1425.  
  1426.                         *'iconstring'*
  1427. 'iconstring'        string    (default "")
  1428.             global
  1429.             {not in Vi}
  1430.     When this options is not empty, it will be used for the icon of the
  1431.     window.  This happens regardless of the 'icon' option.
  1432.     Only works if the terminal supports setting window icons (currently
  1433.     only Unix xterm and iris-ansi).  When Vim was compiled with HAVE_X11
  1434.     defined, the original icon will be restored if possible |X11|.
  1435.  
  1436.                    *'ignorecase'* *'ic'* *'noignorecase'* *'noic'*
  1437. 'ignorecase' 'ic'    toggle    (default off)
  1438.             global
  1439.     Ignore case in search patterns.  Also used when searching in the tags
  1440.     file.
  1441.  
  1442.                         *'include'* *'inc'*
  1443. 'include' 'inc'        string    (default "^#\s*include")
  1444.             global
  1445.             {not in Vi}
  1446.     Pattern to be used to find an include command.  It is a search
  1447.     pattern, just like for the "/" command (See |pattern|).  The default
  1448.     value is for C programs.  This option is used for the commands "[i",
  1449.     "]I", "[d", etc..  The 'isfname' option is used to recognize the file
  1450.     name that comes after the matched pattern.  See |option-backslash|
  1451.     about including spaces and backslashes.
  1452.  
  1453.                  *'incsearch'* *'is'* *'noincsearch'* *'nois'*
  1454. 'incsearch' 'is'    toggle    (default off)
  1455.             global
  1456.             {not in Vi}
  1457.             {not available when compiled without the
  1458.             |+extra_search| feature}
  1459.     While typing a search pattern, show immediately where the so far
  1460.     typed pattern matches.  The matched string is highlighted.  If the
  1461.     pattern is invalid or not found, nothing is shown.  The screen will
  1462.     be updated often, this is only useful on fast terminals.  Note that
  1463.     the match will be shown, but the cursor is not actually positioned
  1464.     there.  You still need to finish the search command with <CR> to move
  1465.     the cursor.  The highlighting can be set with the 'i' flag in
  1466.     'highlight'.  See also: 'hlsearch'.
  1467.  
  1468.                    *'infercase'* *'inf'* *'noinfercase'* *'noinf'*
  1469. 'infercase' 'inf'    toggle    (default off)
  1470.             local to buffer
  1471.             {not in Vi}
  1472.     When doing keyword completion in insert mode |ins-completion|, and
  1473.     'ignorecase' is also on, the case of the match is adjusted.  If the
  1474.     typed text contains a lowercase letter where the match has an upper
  1475.     case letter, the completed part is made lower case.  If the typed text
  1476.     has no lower case letters and the match has a lower case letter where
  1477.     the typed text has an upper case letter, and there is a letter before
  1478.     it, the completed part is made uppercase.
  1479.  
  1480.                    *'insertmode'* *'im'* *'noinsertmode'* *'noim'*
  1481. 'insertmode' 'im'    toggle    (default off)
  1482.             global
  1483.             {not in Vi}
  1484.     Makes Vim work in a way that Insert mode is the default mode.  Useful
  1485.     if you want to use Vim as a modeless editor.
  1486.     These Insert mode commands will be useful:
  1487.     - Use the cursor keys to move around.
  1488.     - Use CTRL-O to execute one Normal mode command |i_CTRL-O|).
  1489.                                 *i_CTRL-L*
  1490.     - Use CTRL-L to execute a number of Normal mode commands, then use
  1491.       <Esc> to get back to Insert mode.
  1492.  
  1493.     These items change when 'insertmode' is set:
  1494.     - when starting to edit of a file, Vim goes to Insert mode.
  1495.     - <Esc> in Insert mode is a no-op and beeps.
  1496.     - <Esc> in Normal mode makes Vim go to Insert mode.
  1497.       WARNING: this means that mappings that rely on the behaviour of
  1498.       <Esc> will not work!
  1499.     - CTRL-L in Insert mode is a command, it is not inserted.
  1500.     - CTRL-Z in Insert mode suspends Vim, see |CTRL-Z|.    *i_CTRL-Z*
  1501.  
  1502.                         *'isfname'* *'isf'*
  1503. 'isfname' 'isf'        string    (default for MS-DOS, Win32 and OS/2:
  1504.                         "@,48-57,/,.,-,_,+,,,$,:,\"
  1505.                  for AMIGA: "@,48-57,/,.,-,_,+,,,$,:"
  1506.                  otherwise: "@,48-57,/,.,-,_,+,,,$,:,~")
  1507.             global
  1508.             {not in Vi}
  1509.     The characters given by this option are included in file names and
  1510.     path names.  Filenames are used for commands like "gf", "[i" and in
  1511.     the tags file.  Besides the characters in this option characters that
  1512.     are defined by the C function isalpha() are also always included
  1513.     (this depends on the character set and "locale").
  1514.  
  1515.     The format of this option is a list of parts, separated with commas.
  1516.     Each part can be a single character number or a range.  A range is two
  1517.     character numbers with '-' in between.  A character number can be a
  1518.     decimal number between 0 and 255 or the ASCII character itself (does
  1519.     not work for digits).  Example:
  1520.         "_,-,128-140,#-43"    (include '_' and '-' and the range
  1521.                     128 to 140 and '#' to 43)
  1522.     If a part starts with '^', the following character number or range
  1523.     will be excluded from the option.  The option is interpreted from left
  1524.     to right.  Put the excluded character after the range where it is
  1525.     included.  To include '^' itself use it as the last character of the
  1526.     option or the end of a range.  Example:
  1527.         "^a-z,#,^"    (exclude 'a' to 'z', include '#' and '^')
  1528.     If the character is '@', all characters where isalpha() returns TRUE
  1529.     are included.  Normally these are the characters a to z and A to Z,
  1530.     plus accented characters.  To include '@' itself use "@-@".  Examples:
  1531.         "@,^a-z"    All alphabetic characters, excluding lower
  1532.                 case letters.
  1533.         "a-z,A-Z,@-@"    All letters plus the '@' character.
  1534.     A comma can be included by using it where a character number is
  1535.     expected.  Example:
  1536.         "48-57,,,_"    Digits, command and underscore.
  1537.     A comma can be excluded by prepending a '^'.  Example:
  1538.         " -~,^,,9"    All characters from space to '~', excluding
  1539.                 comma, plus <Tab>.
  1540.     See |option-backslash| about including spaces and backslashes.
  1541.  
  1542.                         *'isident'* *'isi'*
  1543. 'isident' 'isi'        string    (default for MS-DOS, Win32 and OS/2:
  1544.                        "@,48-57,_,128-167,224-235"
  1545.                 otherwise: "@,48-57,_,192-255")
  1546.             global
  1547.             {not in Vi}
  1548.     The characters given by this option are included in identifiers.
  1549.     Identifiers are used in recognizing environment variables and after
  1550.     a match of the 'define' option.  See 'isfname' for a description of
  1551.     the format of this option.
  1552.     Careful: If you change this option, it might break expanding
  1553.     environment variables.  E.g., when '/' is included and Vim tries to
  1554.     expand "$HOME/.viminfo".  Maybe you should change 'iskeyword' instead.
  1555.  
  1556.                         *'iskeyword'* *'isk'*
  1557. 'iskeyword' 'isk'    string (Vim default for MS-DOS and Win32:
  1558.                         "@,48-57,_,128-167,224-235"
  1559.                    otherwise:  "@,48-57,_,192-255"
  1560.                 Vi default: "@,48-57,_")
  1561.             local to buffer
  1562.             {not in Vi}
  1563.     Keywords are used in searching and recognizing with many commands:
  1564.     "w", "*", "[i", etc.  See 'isfname' for a description of the format of
  1565.     this option.  For C programs you could use "a-z,A-Z,48-57,_,.,-,>".
  1566.     For a help file it is set to all non-blank printable characters except
  1567.     '*', '"' and '|'.  When the 'lisp' option is on the '-' character is
  1568.     always included.
  1569.  
  1570.                         *'isprint'* *'isp'*
  1571. 'isprint' 'isp'    string    (default for MS-DOS and Win32: "@,~-255"
  1572.                   otherwise:           "@,161-255")
  1573.             global
  1574.             {not in Vi}
  1575.     The characters given by this option are displayed directly on the
  1576.     screen.  The characters from space (ascii 32) to '~' (ascii 126) are
  1577.     always displayed directly, even when they are not included in
  1578.     'isprint' or excluded.  See 'isfname' for a description of the format
  1579.     of this option.  Non-printable characters are displayed with two
  1580.     characters:
  1581.           0 -  31    "^@" - "^_"
  1582.          32 - 126    always single characters
  1583.            127        "^?"
  1584.         128 - 159    "~@" - "~_"
  1585.         160 - 254    "| " - "|~"
  1586.            255        "~?"
  1587.  
  1588.                    *'joinspaces'* *'js'* *'nojoinspaces'* *'nojs'*
  1589. 'joinspaces' 'js'    toggle    (default on)
  1590.             global
  1591.             {not in Vi}
  1592.     Insert two spaces after a '.', '?' and '!' with a join command.
  1593.     When 'cpoptions' includes the 'j' flag, only do this after a '.'.
  1594.     Otherwise only one space is inserted.
  1595.  
  1596.                     *'keywordprg'* *'kp'*
  1597. 'keywordprg' 'kp'    string    (default "man", "view /" for OS/2)
  1598.             global
  1599.             {not in Vi}
  1600.     Program to use for the "K" command.  Environment variables are
  1601.     expanded |:set_env|.  When empty ":help" is used.  See
  1602.     |option-backslash| about including spaces and backslashes.
  1603.  
  1604.                     *'langmap'* *'lmap'*
  1605. 'langmap' 'lmap'    string    (default "")
  1606.             global
  1607.             {not in Vi}
  1608.             {only available when compiled with the |+langmap|
  1609.             feature}
  1610.     This option allows support for keyboards that have a mode for a
  1611.     special language.  The idea is that when you are typing text in Insert
  1612.     mode your keyboard is switched in the special language mode, you get
  1613.     different key codes for the special characters.  When in command mode
  1614.     the 'langmap' option takes care of translating these special
  1615.     characters to the original meaning of the key.  This means you don't
  1616.     have to change the keyboard mode to be able to execute normal mode
  1617.     commands.
  1618.  
  1619.     Example (for greek):                    *greek*
  1620. >        :set langmap=┴A,┬B,╪C,─D,┼E,╓F,├G,╟H,╔I,╬J,╩K,╦L,╠M,═N,╧O,╨P,QQ,╤R,╙S,╘T,╚U,┘V,WW,╫X,╒Y,╞Z,ßa,Γb,°c,Σd,σe,÷f,πg,τh,Θi,εj,Ωk,δl,∞m,φn,∩o,≡p,qq,±r,≤s,⌠t,Φu,∙v,≥w,≈x,⌡y,µz
  1621.     Example (exchanges meaning of z and y for commands):
  1622. >        :set langmap=zy,yz,ZY,YZ
  1623.  
  1624.     The 'langmap' option is a list of parts, separated with commas.  Each
  1625.     part can be in one of two forms:
  1626.     1.  A list of pairs.  Each pair is a "from" character immediately
  1627.         followed by the "to" character.  Examples: "aA", "aAbBcC".
  1628.     2.  A list of "from" characters, a semi-colon and a list of "to"
  1629.         characters.  Example: "abc;ABC"
  1630.     Example: "aA,fgh;FGH,cCdDeE"
  1631.     Special characters need to be preceded with a backslash.  These are
  1632.     ";", ',' and backslash itself.
  1633.  
  1634.     This will allow you to activate vim actions without having to switch
  1635.     back and forth between the languages.  Your language characters will
  1636.     be understood as normal vim English characters (according to the
  1637.     langmap mappings) in the following cases:
  1638.      o Normal/Visual mode (commands, buffer/register names, user mappings)
  1639.      o Insert/Replace Mode: Register names after CTRL-R
  1640.      o Insert/Replace Mode: Mappings
  1641.     Characters entered in Command-line mode will NOT be affected by
  1642.     this option.   Note that this option can be changed at any time
  1643.     allowing to switch between mappings for different languages/encodings.
  1644.     Use a mapping to avoid having to type it each time!
  1645.  
  1646.                     *'laststatus'* *'ls'*
  1647. 'laststatus' 'ls'    number    (default 1)
  1648.             global
  1649.             {not in Vi}
  1650.     The value of this option influences when the last window will have a
  1651.     status line:
  1652.         0: never
  1653.         1: only if there are at least two windows
  1654.         2: always
  1655.     The screen looks nicer with a status line if you have several
  1656.     windows, but it takes another screen line.
  1657.  
  1658.                     *'lazyredraw'* *'lz'*
  1659. 'lazyredraw' 'lz'    toggle    (default off)
  1660.             global
  1661.             {not in Vi}
  1662.     When this option is set, the screen will not be redrawn while
  1663.     executing macros, registers and other commands that have not been
  1664.     typed.
  1665.  
  1666.                    *'linebreak'* *'lbr'* *'nolinebreak'* *'nolbr'*
  1667. 'linebreak' 'lbr'    toggle    (default off)
  1668.             local to window
  1669.             {not in Vi}
  1670.     If on Vim will wrap long lines at a character in 'breakat' rather
  1671.     than at the last character that fits on the screen.  Unlike
  1672.     'wrapmargin' and 'textwidth', this does not insert <EOL>s in the file,
  1673.     it only affects the way the file is displayed, not its contents.  The
  1674.     value of 'showbreak' is used to put in front of wrapped lines.  This
  1675.     option is not used when the 'wrap' option is off.  Note that <Tab>
  1676.     characters after an <EOL> are mostly not displayed correctly.
  1677.  
  1678.                         *'lines'*
  1679. 'lines'            number    (default 24 or terminal height)
  1680.             global
  1681.     Number of lines in the display.  Normally you don't need to set this.
  1682.     That is done automatically by the terminal initialization code.  When
  1683.     you do set this, and Vim is unable to change the physical number of
  1684.     lines on the display, redisplaying may be wrong.
  1685.  
  1686.                         *'lisp'* *'nolisp'*
  1687. 'lisp'            toggle    (default off)
  1688.             local to buffer
  1689.             {not available when compiled without the |+lispindent|
  1690.             feature}
  1691.     Lisp mode: When a return is typed in insert mode set the indent for
  1692.     the next line to Lisp standards (well, sort of).  Also happens with
  1693.     "cc" or "S".  'autoindent' must also be on for this to work.  The '-'
  1694.     character is included in keyword characters.  Redefines the "="
  1695.     operator to use this same indentation algorithm rather than calling an
  1696.     external program if 'equalprg' is empty.  This option is reset when
  1697.     'paste' is set.  {Vi: Does it a little bit differently}
  1698.  
  1699.                         *'list'* *'nolist'*
  1700. 'list'            toggle    (default off)
  1701.             local to window
  1702.     List mode: Show tabs as CTRL-I, show end of line with $.  Useful to
  1703.     see the difference between tabs and spaces and for trailing blanks.
  1704.     Note that this will also affect formatting (set with 'textwidth' or
  1705.     'wrapmargin') when 'cpoptions' includes 'L'.
  1706.  
  1707.                         *'magic'* *'nomagic'*
  1708. 'magic'            toggle    (default on)
  1709.             global
  1710.     Changes the special characters that can be used in search patterns.
  1711.     See |pattern|.
  1712.  
  1713.                         *'makeef'* *'mef'*
  1714. 'makeef' 'mef'        string    (Amiga default: "t:vim##.Err",
  1715.                       Unix: "/tmp/vim##.err",
  1716.                     others: "vim##.err")
  1717.             global
  1718.             {not in Vi}
  1719.             {not available when compiled without the |+quickfix|
  1720.             feature}
  1721.     Name of the errorfile for the ":make" command (see |:make_makeprg|).
  1722.     When "##" is included, it is replaced by a number to make the name
  1723.     unique.  This makes sure that the ":make" command doesn't overwrite an
  1724.     existing file.
  1725.     NOT used for the ":cf" command.  See 'errorfile' for that.
  1726.     Environment variables are expanded |:set_env|.
  1727.     See |option-backslash| about including spaces and backslashes.
  1728.  
  1729.                         *'makeprg'* *'mp'*
  1730. 'makeprg' 'mp'        string    (default "make")
  1731.             global
  1732.             {not in Vi}
  1733.     Program to use for the ":make" command.  See |:make_makeprg|.  This
  1734.     option may contain '%' and '#' characters, which are expanded like
  1735.     when used in a command line.  Environment variables are expanded
  1736.     |:set_env|.  See |option-backslash| about including spaces and
  1737.     backslashes.
  1738.  
  1739.                         *'matchtime'* *'mat'*
  1740. 'matchtime' 'mat'    number  (default 5)
  1741.             global
  1742.             {not in Vi}{in Nvi}
  1743.     Tenths of a second to show the matching paren, when 'showmatch' is
  1744.     set.  Note that this is not in milliseconds, like other options that
  1745.     set a time.  This is to be compatible with Nvi.
  1746.  
  1747.                         *'maxmapdepth'* *'mmd'*
  1748. 'maxmapdepth' 'mmd'    number    (default 1000)
  1749.             global
  1750.             {not in Vi}
  1751.     Maximum number of times a mapping is done without resulting in a
  1752.     character to be used.  This normally catches endless mappings, like
  1753.     ":map x y" with ":map y x".  It still does not catch ":map g wg",
  1754.     because the 'w' is used before the next mapping is done.  See also
  1755.     |key-mapping|.
  1756.  
  1757.                         *'maxmem'* *'mm'*
  1758. 'maxmem' 'mm'        number    (default 512)
  1759.             global
  1760.             {not in Vi}
  1761.     Maximum amount of memory (in Kbyte) to use for one buffer.  When this
  1762.     limit is reached allocating extra memory for a buffer will cause
  1763.     other memory to be freed.  See also 'maxmemtot'.
  1764.  
  1765.                         *'maxmemtot'* *'mmt'*
  1766. 'maxmemtot' 'mmt'    number    (default 2048, or half the amount of memory
  1767.                 available)
  1768.             global
  1769.             {not in Vi}
  1770.     Maximum amount of memory (in Kbyte) to use for all buffers together.
  1771.     See also 'maxmem'.
  1772.  
  1773.                    *'modeline'* *'ml'* *'nomodeline'* *'noml'*
  1774. 'modeline' 'ml'        toggle    (Vim default: on, Vi default: off)
  1775.             local to buffer
  1776.                         *'modelines'* *'mls'*
  1777. 'modelines' 'mls'    number    (default 5)
  1778.             global
  1779.             {not in Vi}
  1780.     If 'modeline' is on 'modelines' gives the number of lines that is
  1781.     checked for set commands.  If 'modeline' is off or 'modelines' is zero
  1782.     no lines are checked.  See |modeline|.  'modeline' is reset when
  1783.     'compatible' is set.
  1784.  
  1785.                  *'modified'* *'mod'* *'nomodified'* *'nomod'*
  1786. 'modified' 'mod'    toggle    (default off)
  1787.             local to buffer
  1788.             {not in Vi}
  1789.     When on the buffer is considered to be modified.  This option is set
  1790.     by every command that makes a change to the buffer.  Only the undo
  1791.     command may reset it, when all changes have been undone.
  1792.  
  1793.                         *'more'* *'nomore'*
  1794. 'more'            toggle    (Vim default: on, Vi default: off)
  1795.             global
  1796.             {not in Vi}
  1797.     When on, listings pause when the whole screen is filled.  You will get
  1798.     the |more-prompt|.  When this option is off there are no pauses, the
  1799.     listing continues until finished.
  1800.     When 'compatible' is set this option is reset.
  1801.  
  1802.                         *'mouse'*
  1803. 'mouse'            string    (default "", "a" for MS-DOS and Win32)
  1804.             global
  1805.             {not in Vi}
  1806.     Enable the use of the mouse.  Only works for certain terminals
  1807.     (MS-DOS, Win32 |win32-mouse| and xterm).  For using the mouse in the
  1808.     GUI, see |gui-mouse|.
  1809.     The mouse can be enabled for different modes:
  1810.         n    Normal mode
  1811.         v    Visual mode
  1812.         i    Insert mode
  1813.         c    Command-line mode
  1814.         h    all previous modes when editing a help file
  1815.         a    all previous modes
  1816.         r    for |hit-return| prompt
  1817.     Normally you would enable the mouse in all four modes with:
  1818.         :set mouse=a
  1819.     Note: Normal copy/paste in an xterm can still be used by pressing the
  1820.     shift key when the mouse is being used by Vim.  See |mouse-using|.
  1821.  
  1822.             *'mousehide'* *'mh'* *'nomousehide'* *'nomh'*
  1823. 'mousehide' 'mh'    toggle    (default off)
  1824.             global
  1825.             {not in Vi}
  1826.             {only works in the GUI}
  1827.     When on, the mouse pointer is hidden when characters are typed.
  1828.     The mouse pointer is restored when the mouse is moved.
  1829.  
  1830.                         *'mousetime'* *'mouset'*
  1831. 'mousetime' 'mouset'    number    (default 500)
  1832.             global
  1833.             {not in Vi}
  1834.     Only for GUI, MS-DOS, Win32 and Unix with xterm.  Defines the maximum
  1835.     time in msec between two mouse clicks for the second click to be
  1836.     recognized as a multi click.
  1837.  
  1838.                             *'nrformats'* *'nf'*
  1839. 'nrformats' 'nf'    string    (default "octal,hex")
  1840.             local to buffer
  1841.             {not in Vi}
  1842.     This defines what bases Vim will consider for numbers when using the
  1843.     CTRL-A and CTRL-X commands for adding to and subtracting from a number
  1844.     respectively; see |CTRL-A| for more info on these commands.
  1845.     If "octal" is included, numbers that start with a zero will be
  1846.     considered to be octal.  Example: Using CTRL-A on "007" results in
  1847.     "010".
  1848.     If "hex" is included, numbers starting with "0x" or "0X" will be
  1849.     considered to be hexadecimal.  Example: Using CTRL-X on "0x100"
  1850.     results in "0x0ff".
  1851.     Numbers which simply begin with a digit in the range 1-9 are always
  1852.     considered decimal.  This also happens for numbers that are not
  1853.     recognized as octal or hex.
  1854.  
  1855.                        *'number'* *'nu'* *'nonumber'* *'nonu'*
  1856. 'number' 'nu'        toggle    (default off)
  1857.             local to window
  1858.     Print the line number in front of each line.  Tip: If you don't like
  1859.     wrapping lines to mix with the line numbers, set the 'showbreak'
  1860.     option to eight spaces:
  1861.         :set showbreak=\ \ \ \ \ \ \ \ 
  1862.  
  1863.                         *'paragraphs'* *'para'*
  1864. 'paragraphs' 'para'    string    (default "IPLPPPQPP LIpplpipbp")
  1865.             global
  1866.     Specifies the nroff macros that separate paragraphs.  These are pairs
  1867.     of two letters (see |object-motions|).
  1868.  
  1869.                         *'paste'* *'nopaste'*
  1870. 'paste'            toggle    (default off)
  1871.             global
  1872.             {not in Vi}
  1873.     Put Vim in Paste mode.  This is useful if you want to cut or copy
  1874.     some text from one window and paste it in Vim.  This will avoid
  1875.     unexpected effects.  When the 'paste' option is switched on (also when
  1876.     it was already on):
  1877.         - mapping in Insert mode is disabled
  1878.         - abbreviations are disabled
  1879.         - 'textwidth' is set to 0
  1880.                 - 'wrapmargin' is set to 0
  1881.         - 'autoindent' is reset
  1882.         - 'smartindent' is reset
  1883.         - 'cindent' is reset
  1884.                 - 'softtabstop' is set to 0
  1885.         - 'lisp' is reset
  1886.         - 'revins' is reset
  1887.         - 'ruler' is reset
  1888.         - 'showmatch' is reset
  1889.         - 'formatoptions' is used like it is empty
  1890.     NOTE: When you start editing another file while the 'paste' option is
  1891.     on, settings from the modelines or autocommands may change the
  1892.     settings again, causing trouble when pasting text.  You might want to
  1893.     set the 'paste' option again.
  1894.     When the 'paste' option is reset the mentioned options are restored to
  1895.     the value before the moment 'paste' was switched from off to on.
  1896.     Resetting 'paste' before ever setting it does not have any effect.  If
  1897.     you use this often, you could map a function key to the command ":set
  1898.     invpaste^V^M".
  1899.  
  1900.                         *'patchmode'* *'pm'*
  1901. 'patchmode' 'pm'    string    (default "")
  1902.             global
  1903.             {not in Vi}
  1904.     When non-empty the oldest version of a file is kept.  This can be used
  1905.     to keep the original version of a file if you are changing files in a
  1906.     source distribution.  Only the first time that a file is edited a copy
  1907.     of the original file will be kept.  The name of the copy is the name
  1908.     of the original file with the string in the 'patchmode' option
  1909.     appended.  This option should start with a dot.  Use a string like
  1910.     ".org".  'backupdir' must not be empty for this to work (Detail: The
  1911.     backup file is renamed to the patchmode file after the new file has
  1912.     been succesfully written, that's why it must be possible to write a
  1913.     backup file).  If there was no file to be backed up, an empty file is
  1914.     created.
  1915.  
  1916.                         *'path'* *'pa'*
  1917. 'path' 'pa'        string    (default on Unix: ".,/usr/include,,"
  1918.                    on OS/2:       ".,/emx/include,,"
  1919.                    other systems: ".,,")
  1920.             global
  1921.             {not in Vi}
  1922.     This is a list of directories which will be searched when using the
  1923.     gf, [f, ]f, ^Wf and other commands, provided that the file being
  1924.     searched for has a relative path (not starting with '/').  The
  1925.     directories in the 'path' option may be relative or absolute.
  1926.     - Use commas to separate directory names:
  1927.         :set path=.,/usr/local/include,/usr/include
  1928.     - Spaces can also be used to separate directory names (for backwards
  1929.       compatibility with version 3.0).  To have a space in a directory
  1930.       name, precede it with an extra backslash, and escape the space:
  1931.           :set path=.,/dir/with\\\ space
  1932.     - To include a comma in a directory name precede it with an extra
  1933.       backslash:
  1934.           :set path=.,/dir/with\\,comma
  1935.     - To search relative to the directory where the current file is use
  1936.           :set path=.
  1937.     - To search in the current directory use an empty string between two
  1938.       commas:
  1939.         :set path=,,
  1940.     - A directory name may end in a ':' or '/'.
  1941.     - Environment variables are expanded |:set_env|.
  1942.     - Use wildcards to specify directories more freely, e.g.,
  1943.         :set path=/usr/include/*
  1944.       means all subdirectories below /usr/include (but not /usr/include
  1945.       itself).
  1946.     - Use '**' if you want the whole subtree to be searched:
  1947.         :set path=/home/user_x/src/**
  1948.       means search in the whole subtree under "/home/usr_x/src". (to avoid
  1949.       endless recursions, the depth is restricted to 100 levels)
  1950.     - Give wildcards and recursions in any order:
  1951.         :set path=/**/include/**
  1952.       specifies a path with at least one directory /include/ in it.
  1953.     - The set of allowed wildcards and the possible usage depend on the
  1954.       operating system, but /etc/*/etc and /etc/**/etc work on any
  1955.       system. |:_%<|
  1956.     - Careful with '\' characters, type two to get one in the option:
  1957.         :set path=.,c:\\include
  1958.       Or just use '/' instead:
  1959.         :set path=.,c:/include
  1960.     Don't forget "." or files won't even be found in the same directory as
  1961.     the file!
  1962.     The maximum length is limited.  How much depends on the system, mostly
  1963.     it is something like 256 or 1024 characters.
  1964.     You can check if all the include files are found, using the value of
  1965.     'path', see |:checkpath|.
  1966.  
  1967.                    *'readonly'* *'ro'* *'noreadonly'* *'noro'*
  1968. 'readonly' 'ro'        toggle    (default off)
  1969.             local to buffer
  1970.             {not in Vi}
  1971.     If on, writes fail unless you use a '!'.  Protects you from
  1972.     accidentally overwriting a file.  Default on when Vim is started
  1973.     in read-only mode ("vim -R") or when the executable is called "view".
  1974.     {not in Vi:}  When using the ":view" command the 'readonly' option is
  1975.     set for the newly edited buffer.  When using ":w!" the 'readonly'
  1976.     option is reset for the current buffer.
  1977.  
  1978.                         *'remap'* *'noremap'*
  1979. 'remap'            toggle    (default on)
  1980.             global
  1981.     Allows for mappings to work recursively.  If you do not want this for
  1982.     a single entry, use the :noremap[!] command.
  1983.  
  1984.                         *'report'*
  1985. 'report'        number    (default 2)
  1986.             global
  1987.     Threshold for reporting number of lines changed.  When the number of
  1988.     changed lines is more than 'report' a message will be given for most
  1989.     ":" commands.  For the ":substitute" command the number of
  1990.     substitutions is used instead of the number of lines.
  1991.  
  1992.              *'restorescreen'* *'rs'* *'norestorescreen'* *'nors'*
  1993. 'restorescreen' 'rs'    toggle    (default on)
  1994.             global
  1995.             {not in Vi}  {Windows 95/NT version only}
  1996.     When set, the screen contents is restored when exiting Vim.  This also
  1997.     happens when executing external commands.
  1998.  
  1999.     For non-Windows Vim: You can set or reset the 't_ti' and 't_te'
  2000.     options in your .vimrc.  To disable restoring:
  2001.         set t_ti= t_te=
  2002.     To enable restoring (for an xterm):
  2003.         set t_ti=^[7^[[r^[[?47h t_te=^[[?47l^[8
  2004.     (Where ^[ is an <Esc>, type CTRL-V <Esc> to insert it)
  2005.  
  2006.                        *'revins'* *'ri'* *'norevins'* *'nori'*
  2007. 'revins' 'ri'        toggle    (default off)
  2008.             global
  2009.             {not in Vi}
  2010.             {only available when compiled with the |+rightleft|
  2011.             feature}
  2012.     Inserting characters in Insert mode will work backwards.  See "typing
  2013.     backwards" |ins-reverse|.  This option can be toggled with the CTRL-B
  2014.     command in Insert mode.  This option is reset when 'compatible' or
  2015.     'paste' is set.
  2016.  
  2017.                  *'rightleft'* *'rl'* *'norightleft'* *'norl'*
  2018. 'rightleft' 'rl'    toggle    (default off)
  2019.             local to window
  2020.             {not in Vi}
  2021.             {only available when compiled with the |+rightleft|
  2022.             feature}
  2023.     When on, display orientation becomes right-to-left, i.e., character
  2024.     that are stored in the file apear from the right to the left.  Using
  2025.     this option, it is possible to edit files for languages that are
  2026.     written from the right to the left such as Hebrew and Arabic.  This
  2027.     option is per window, so it is possible to edit mixed files
  2028.     simultaneously, or to view the same file in both ways (this is
  2029.     sometimes usefull when editing Hebrew TeX--XeT files).  See
  2030.     |rightleft.txt|.
  2031.  
  2032.                      *'ruler'* *'ru'* *'noruler'* *'noru'*
  2033. 'ruler' 'ru'        toggle    (default off)
  2034.             global
  2035.             {not in Vi}
  2036.     Show the line and column number of the cursor position, separated by a
  2037.     comma.  Each window has its own ruler.
  2038.     If a window has a status line, the ruler is shown there.  Otherwise it
  2039.     is shown in the last line of the screen.
  2040.     If there are characters in the line that take two positions on the
  2041.     screen, both the "real" column and the screen column are shown,
  2042.     separated with a dash.
  2043.     For an empty line "0-1" is shown.
  2044.     For an empty buffer the line number will also be zero: "0,0-1".
  2045.     This option is reset when the 'paste' option is set.
  2046.     If you don't want to see the ruler all the time but want to know where
  2047.     you are, use "g CTRL-G" |g_CTRL-G|.
  2048.  
  2049.                         *'scroll'* *'scr'*
  2050. 'scroll' 'scr'        number    (default 'lines' / 2)
  2051.             local to window
  2052.     Number of lines to scroll with CTRL-U and CTRL-D commands.  Will be
  2053.     set to half the number of lines in the window when the window size
  2054.     changes.  If you give a count to the CTRL-U or CTRL-D command it will
  2055.     be used as the new value for 'scroll'.  Reset to 'lines' / 2 with
  2056.     ":set scroll=0".   {difference from vi: 'scroll' gives the number of
  2057.     screen lines instead of file lines, makes a difference when lines
  2058.     wrap}
  2059.  
  2060.                         *'scrolljump'* *'sj'*
  2061. 'scrolljump' 'sj'    number    (default 1)
  2062.             global
  2063.             {not in Vi}
  2064.     Minimal number of lines to scroll when the cursor gets off the
  2065.     screen (e.g., with "j").  Not used for scroll commands (e.g., CTRL-E,
  2066.     CTRL-D).  Useful if your terminal scrolls very slowly.
  2067.  
  2068.                         *'scrolloff'* *'so'*
  2069. 'scrolloff' 'so'    number    (default 0)
  2070.             global
  2071.             {not in Vi}
  2072.     Minimal number of screen lines to keep above and below the cursor.
  2073.     This will make some context visible around where you are working.  If
  2074.     you set it to a very large value (999) the cursor line will always be
  2075.     in the middle of the window (except at the start or end of the file or
  2076.     when long lines wrap).
  2077.  
  2078.                         *'sections'* *'sect'*
  2079. 'sections' 'sect'        string    (default "SHNHH HUnhsh")
  2080.             global
  2081.     Specifies the nroff macros that separate sections.  These are pairs of
  2082.     two letters (See |object-motions|).  The default makes a section start
  2083.     at the nroff macros ".SH", ".NH", ".H", ".HU", ".nh" and ".sh".
  2084.  
  2085.                         *'secure'* *'nosecure'*
  2086. 'secure'        toggle    (default off)
  2087.             global
  2088.             {not in Vi}
  2089.     When on, ":autocmd", shell and write commands are not allowed in
  2090.     ".vimrc" and ".exrc" in the current directory and map commands are
  2091.     displayed.  Switch it off only if you know that you will not run into
  2092.     problems, or when the 'exrc' option is off.  On Unix this option is
  2093.     only used if the ".vimrc" or ".exrc" is not owned by you.  This can be
  2094.     dangerous if the systems allows users to do a "chown".  You better set
  2095.     'secure' at the end of your ~/.vimrc then.
  2096.  
  2097.                         *'shell'* *'sh'*
  2098. 'shell' 'sh'        string    (default $SHELL or "sh",
  2099.                     MS-DOS and Win32: "command",
  2100.                     OS/2: "cmd")
  2101.             global
  2102.     Name of the shell to use for ! and :! commands.  When changing the
  2103.     value also check the 'shelltype', 'shellpipe' and 'shellredir'
  2104.     options.  It is allowed to give an argument to the command, e.g.
  2105.     "csh -f".  See |option-backslash| about including spaces and
  2106.     backslashes.  Environment variables are expanded |:set_env|.
  2107.  
  2108.                         *'shellcmdflag'* *'shcf'*
  2109. 'shellcmdflag' 'shcf'    string    (default: "-c", MS-DOS and Win32, when 'shell'
  2110.                     does not contain "sh" somewhere: "/c")
  2111.             global
  2112.             {not in Vi}
  2113.     Flag passed to the shell to execute "!" and ":!" commands; e.g.,
  2114.     "bash.exe -c ls" or "command.com /c dir".  For the MS-DOS-like
  2115.     systems, the default is set according to the value of 'shell', to
  2116.     reduce the need to set this option by the user.  It's not used for
  2117.     OS/2 (EMX figures this out itself).  See |option-backslash| about
  2118.     including spaces and backslashes.  See |dos-shell|.
  2119.  
  2120.                         *'shellpipe'* *'sp'*
  2121. 'shellpipe' 'sp'    string    (default ">", "| tee", "|& tee" or "2>&1| tee")
  2122.             global
  2123.             {not in Vi}
  2124.     String to be used to put the output of the ":make" command in the
  2125.     error file.  See also |:make_makeprg|.  See |option-backslash| about
  2126.     including spaces and backslashes.
  2127.     For the Amiga and MS-DOS the default is ">".  The output is directly
  2128.     saved in a file and not echoed to the screen.
  2129.     For Unix the default it "| tee".  The stdout of the compiler is saved
  2130.     in a file and echoed to the screen.  If the 'shell' option is "csh" or
  2131.     "tcsh" after initializations, the default becomes "|& tee".  If the
  2132.     'shell' option is "sh", "ksh", "zsh" or "bash" the default becomes
  2133.     "2>&1| tee".  This means that stderr is also included.
  2134.     The initialization of this option is done after reading the ".vimrc"
  2135.     and the other initializations, so that when the 'shell' option is set
  2136.     there, the 'shellpipe' option changes automatically, unless it was
  2137.     explicitly set before.
  2138.     When 'shellpipe' is set to an empty string, no redirection of the
  2139.     ":make" output will be done.  This is useful if you use a 'makeprg'
  2140.     that writes to 'makeef' by itself.  If you want no piping, but do
  2141.     want to include the 'makeef', set 'shellpipe' to a single space.
  2142.     Don't forget to precede the space with a backslash: ":set sp=\ ".
  2143.     In the future pipes may be used for filtering and this option will
  2144.     become obsolete (at least for Unix).
  2145.  
  2146.                         *'shellquote'* *'shq'*
  2147. 'shellquote' 'shq'    string    (default: ""; MS-DOS and Win32, when 'shell'
  2148.                     contains "sh" somewhere: "\"")
  2149.             global
  2150.             {not in Vi}
  2151.     Quoting character(s), put around the command passed to the shell, for
  2152.     the "!" and ":!" commands.  The redirection is kept outside of the
  2153.     quoting.  See 'shellxquoute' to include the redirection.  It's
  2154.     probably not useful to set both options.
  2155.     This is an empty string by default.  Only known to be useful for
  2156.     third-party shells on MS-DOS-like systems, such as the MKS Korn Shell
  2157.     or bash, where it should be "\"".  The default is adjusted according
  2158.     the value of 'shell', to reduce the need to set this option by the
  2159.     user.  See |dos-shell|.
  2160.  
  2161.                         *'shellredir'* *'srr'*
  2162. 'shellredir' 'srr'    string    (default ">", ">&" or ">%s 2>&1")
  2163.             global
  2164.             {not in Vi}
  2165.     String to be used to put the output of a filter in a temporary file.
  2166.     See also |:!|.  See |option-backslash| about including spaces and
  2167.     backslashes.
  2168.     The name of the temporary file can be represented by "%s" if necessary
  2169.     (the file name is appended automatically if no %s appears in the value
  2170.     of this option).
  2171.     The default is ">".  For Unix, if the 'shell' option is "csh", "tcsh"
  2172.     or "zsh" during initializations, the default becomes ">&".  If the
  2173.     'shell' option is "sh", "ksh" or "bash" the default becomes
  2174.     ">%s 2>&1".  This means that stderr is also included.
  2175.     The initialization of this option is done after reading the ".vimrc"
  2176.     and the other initializations, so that when the 'shell' option is set
  2177.     there, the 'shellredir' option changes automatically unless it was
  2178.     explicitly set before.
  2179.     In the future pipes may be used for filtering and this option will
  2180.     become obsolete (at least for Unix).
  2181.  
  2182.                         *'shelltype'* *'st'*
  2183. 'shelltype' 'st'    number    (default 0)
  2184.             global
  2185.             {not in Vi}
  2186.     On the Amiga this option influences the way how the commands work
  2187.     which use a shell.
  2188.     0 and 1: always use the shell
  2189.     2 and 3: use the shell only to filter lines
  2190.     4 and 5: use shell only for ':sh' command
  2191.     When not using the shell, the command is executed directly.
  2192.  
  2193.     0 and 2: use "shell 'shellcmdflag' cmd" to start external commands
  2194.     1 and 3: use "shell cmd" to start external commands
  2195.  
  2196.                         *'shellxquote'* *'sxq'*
  2197. 'shellxquote' 'sxq'    string    (default: "";
  2198.                     for Win32, when 'shell' contains "sh"
  2199.                     somewhere: "\""
  2200.                     for Unix, when using system(): "\"")
  2201.             global
  2202.             {not in Vi}
  2203.     Quoting character(s), put around the command passed to the shell, for
  2204.     the "!" and ":!" commands.  Includes the redirection.  See
  2205.     'shellxquoute' to exclude the redirection.  It's probably not useful
  2206.     to set both options.
  2207.     This is an empty string by default.  Known to be useful for
  2208.     third-party shells when using the Win32 version, such as the MKS Korn
  2209.     Shell or bash, where it should be "\"".  The default is adjusted
  2210.     according the value of 'shell', to reduce the need to set this option
  2211.     by the user.  See |dos-shell|.
  2212.  
  2213.                    *'shiftround'* *'sr'* *'noshiftround'* *'nosr'*
  2214. 'shiftround' 'sr'    toggle    (default off)
  2215.             global
  2216.             {not in Vi}
  2217.     Round indent to multiple of 'shiftwidth'.  Applies to > and <
  2218.     commands.  CTRL-T and CTRL-D in Insert mode always round the indent to
  2219.     a multiple of 'shiftwidth' (this is vi compatible).
  2220.  
  2221.                         *'shiftwidth'* *'sw'*
  2222. 'shiftwidth' 'sw'    number    (default 8)
  2223.             local to buffer
  2224.     Number of spaces to use for each step of (auto)indent.
  2225.  
  2226.                         *'shortmess'* *'shm'*
  2227. 'shortmess' 'shm'    string    (default "")
  2228.             global
  2229.             {not in Vi}
  2230.     This option helps to avoid all the |hit-return| prompts caused by file
  2231.     messages, for example  with CTRL-G, and to avoid some other messages.
  2232.     It is a list of flags:
  2233.      flag    meaning when present    ~
  2234.       f    use "(3 of 5)" instead of "(file 3 of 5)"
  2235.       i    use "[noeol]" instead of "[Incomplete last line]"
  2236.       l    use "999L, 888C" instead of "999 lines, 888 characters"
  2237.       m    use "[+]" instead of "[Modified]"
  2238.       n    use "[New]" instead of "[New File]"
  2239.       r    use "[RO]" instead of "[readonly]"
  2240.       w    use "[w]" instead of "written" for file write message.
  2241.       x    use "[dos]" instead of "[dos format]", "[unix]" instead of
  2242.         "[unix format]" and "[mac]" instead of "[mac format]".
  2243.       a    all of the above abbreviations
  2244.  
  2245.       o    overwrite message for writing a file with subsequent message
  2246.         for reading a file (useful for ":wn" or when 'autowrite' on)
  2247.       s    don't give "search hit BOTTOM, continuing at TOP" or "search
  2248.         hit TOP, continuing at BOTTOM" messages
  2249.       t    trunctate file message at the start if it is too long to fit
  2250.         on the command line, "<" will appear in the left most column.
  2251.       W    don't give "written" or "[w]" when writing a file
  2252.       A    don't give the "ATTENTION" message when an existing swap file
  2253.         is found.
  2254.       I    don't give the intro message when starting Vim |:intro|.
  2255.  
  2256.     This gives you the opportunity to avoid that a change between buffers
  2257.     requires you to hit return, but still gives as useful a message as
  2258.     possible for the space available.  To get the whole message that you
  2259.     would have got with 'shm' empty, use ":file!"
  2260.     Useful values:
  2261.         shm=    No abbreviation of message.
  2262.         shm=a    Abbreviation, but no loss of information.
  2263.         shm=at    Abbreviation, and truncate message when necessary.
  2264.  
  2265.                  *'shortname'* *'sn'* *'noshortname'* *'nosn'*
  2266. 'shortname' 'sn'    toggle    (default off)
  2267.             local to buffer
  2268.             {not in Vi, not in MS-DOS versions}
  2269.     Filenames are assumed to be 8 characters plus one extension of 3
  2270.     characters.  Multiple dots in file names are not allowed.  When this
  2271.     option is on, dots in file names are replaced with underscores when
  2272.     adding an extension (".~" or ".swp").  This option is not available
  2273.     for MS-DOS, because then it would always be on.  This option is useful
  2274.     when editing files on an MS-DOS compatible filesystem, e.g., messydos
  2275.     or crossdos.
  2276.  
  2277.                         *'showbreak'* *'sbr'*
  2278. 'showbreak' 'sbr'    string    (default "")
  2279.             global
  2280.             {not in Vi}
  2281.     String to put at the start of lines that have been wrapped.  Useful
  2282.     values are "> " or "+++ ".  Only printable characters are allowed,
  2283.     excluding <Tab> and comma (in a future version the comma might be used
  2284.     to separate the part that is shown at the end and at the start of a
  2285.     line).  The characters are highlighted according to the '@' flag in
  2286.     'highlight'.
  2287.  
  2288.                      *'showcmd'* *'sc'* *'noshowcmd'* *'nosc'*
  2289. 'showcmd' 'sc'        toggle    (Vim default: on, off for Unix, Vi default:
  2290.                  off)
  2291.             global
  2292.             {not in Vi}
  2293.             {not available when compiled without the  |+showcmd|
  2294.             feature}
  2295.     Show (partial) command in status line.  Set this option off if your
  2296.     terminal is slow.
  2297.  
  2298.                  *'showmatch'* *'sm'* *'noshowmatch'* *'nosm'*
  2299. 'showmatch' 'sm'    toggle    (default off)
  2300.             global
  2301.     When a bracket is inserted, briefly jump to the matching one.  The
  2302.     jump is only done if the match can be seen on the screen.  The time to
  2303.     show the match can be set with 'matchtime'.
  2304.     A Beep is given if there is no match (no matter if the match can be
  2305.     seen or not).  This option is reset when the 'paste' option is set.
  2306.     When the 'm' flag is not included in 'cpoptions', typing a character
  2307.     will immediately move the cursor back to where it belongs.
  2308.     See the "sm" field in 'guicursor' for setting the cursor shape and
  2309.     blinking when showing the match.
  2310.  
  2311.                  *'showmode'* *'smd'* *'noshowmode'* *'nosmd'*
  2312. 'showmode' 'smd'    toggle    (Vim default: on, Vi default: off)
  2313.             global
  2314.     If in Insert, Replace or Visual mode put a message on the last line.
  2315.     Use the 'M' flag in 'highlight' to set the type of highlighting for
  2316.     this message.
  2317.  
  2318.                         *'sidescroll'* *'ss'*
  2319. 'sidescroll' 'ss'    number    (default 0)
  2320.             global
  2321.             {not in Vi}
  2322.     The minimal number of columns to scroll horizontally.  Used only when
  2323.     the 'wrap' option is off and the cursor is moved off of the screen.
  2324.     When it is zero the cursor will be put in the middle of the screen.
  2325.     When using a slow terminal set it to a large number or 0.  When using
  2326.     a fast terminal use a small number or 1.  Not used for "zh" and "zl"
  2327.     commands.
  2328.  
  2329.                    *'smartcase'* *'scs'* *'nosmartcase'* *'noscs'*
  2330. 'smartcase' 'scs'    toggle    (default off)
  2331.             global
  2332.             {not in Vi}
  2333.     Override the 'ignorecase' option if the search pattern contains upper
  2334.     case characters.  Only used when the search pattern is typed and
  2335.     'ignorecase' option is on.  Used for the commands "/", "?", "n", "N",
  2336.     ":g" and ":s".  Not used for "*", "#", "gd", tag search, etc..
  2337.  
  2338.                  *'smartindent'* *'si'* *'nosmartindent'* *'nosi'*
  2339. 'smartindent' 'si'    toggle    (default off)
  2340.             local to buffer
  2341.             {not in Vi}
  2342.             {not available when compiled without the
  2343.             |+smartindent| feature}
  2344.     Do smart autoindenting when starting a new line.  Works for C-like
  2345.     programs, but can also be used for other languages.  'cindent' does
  2346.     something like this, works better in most cases, but is more strict,
  2347.     see |C-indenting|.  When 'cindent' is on, setting 'si' has no effect.
  2348.     Normally 'autoindent' should also be on when using 'smartindent'.
  2349.     An indent is automatically inserted:
  2350.     - After a line ending in '{'.
  2351.     - After a line starting with a keyword from 'cinwords'.
  2352.     - Before a line starting with '}' (only with the "O" command).
  2353.     When typing '}' as the first character in a new line, that line is
  2354.     given the same indent as the matching '{'.
  2355.     When typing '#' as the first character in a new line, the indent for
  2356.     that line is removed, the '#' is put in the first column.  The indent
  2357.     is restored for the next line.  If you don't want this, use this
  2358.     mapping: ":inoremap # X^H#", where ^H is entered with CTRL-V CTRL-H.
  2359.     When using the ">>" command, lines starting with '#' are not shifted
  2360.     right.
  2361.     'smartindent' is reset when the 'paste' option is set.
  2362.  
  2363.                  *'smarttab'* *'sta'* *'nosmarttab'* *'nosta'*
  2364. 'smarttab' 'sta'    toggle    (default off)
  2365.             global
  2366.             {not in Vi}
  2367.     When on, a <Tab> in front of a line inserts 'shiftwidth' positions,
  2368.     'tabstop' in other places.  When off a <Tab> always inserts 'tabstop'
  2369.     positions, 'shiftwidth' is only used for ">>" and the like.  See also
  2370.     |ins-expandtab|.
  2371.  
  2372.                     *'softtabstop'* *'sts'*
  2373. 'softtabstop' 'sts'    number    (default 0)
  2374.             local to buffer
  2375.             {not in Vi}
  2376.     Number of spaces that a <Tab> counts for while performing editing
  2377.     operations, like inserting a <Tab> or using <BS>.  It "feels" like
  2378.     <Tab>s are being inserted, while in fact a mix of spaces and <Tab>s is
  2379.     used.  This is useful to keep the 'ts' setting at its standard value
  2380.         of 8, while being able to edit like it is set to 'sts'.  However,
  2381.         commands like "x" still work on the actual characters.
  2382.         When 'sts' is zero, this feature is off.
  2383.     'softtabstop' is set to 0 when the 'paste' option is set.
  2384.         See also |ins-expandtab|.
  2385.  
  2386.                    *'splitbelow'* *'sb'* *'nosplitbelow'* *'nosb'*
  2387. 'splitbelow' 'sb'    toggle    (default off)
  2388.             global
  2389.             {not in Vi}
  2390.     When on, spliting a window will put the new window below the current
  2391.     one.
  2392.  
  2393.                *'startofline'* *'sol'* *'nostartofline'* *'nosol'*
  2394. 'startofline' 'sol'    toggle    (default on)
  2395.             global
  2396.             {not in Vi}
  2397.     When on the commands listed below move the cursor to the first
  2398.     blank of the line.  When off the cursor is kept in the same column
  2399.     (if possible).  This applies to the commands: CTRL-D, CTRL-U, CTRL-B,
  2400.     CTRL-F, "G", "H", "M", "L", , and to the commands "d", "<<" and ">>"
  2401.     with a linewise operator and with "%" with a count.  This option is
  2402.     set when the 'compatible' option is set.
  2403.  
  2404.                         *'suffixes'* *'su'*
  2405. 'suffixes' 'su'        string    (default ".bak,~,.o,.h,.info,.swp")
  2406.             global
  2407.             {not in Vi}
  2408.     Files with these suffixes are ignored when multiple files match a
  2409.     wildcard.  See |suffixes|.  Commas can be used to separate the
  2410.     suffixes.  Spaces after the comma are ignored.  A dot is also seen as
  2411.     the start of a suffix.  To include a dot or comma in a suffix, precede
  2412.     it with a backslash (see |option-backslash| about including spaces and
  2413.     backslashes).
  2414.  
  2415.                         *'swapsync'* *'sws'*
  2416. 'swapsync' 'sws'    string    (default "fsync")
  2417.             global
  2418.             {not in Vi}
  2419.     When this option is not empty a swap file is synced to disk after
  2420.     writing to it.  This takes some time, especially on busy unix systems.
  2421.     When this option is empty parts of the swap file may be in memory and
  2422.     not written to disk.  When the system crashes you may lose more work.
  2423.     On Unix the system does a sync now and then without Vim asking for it,
  2424.     so the disadvantage of setting this option off is small.  On some
  2425.     systems the swap file will not be written at all.  For a unix system
  2426.     setting it to "sync" will use the sync() call instead of the default
  2427.     fsync(), which may work better on some systems.
  2428.  
  2429.                     *'tabstop'* *'ts'*
  2430. 'tabstop' 'ts'        number    (default 8)
  2431.             local to buffer
  2432.     Number of spaces that a <Tab> in the file counts for.  Also see
  2433.     |:retab| command, and 'softtabstop' option.
  2434.  
  2435.             *'tagbsearch'* *'tbs'* *'notagbsearch'* *'notbs'*
  2436. 'tagbsearch' 'tbs'    toggle    (default on)
  2437.             global
  2438.             {not in Vi}
  2439.     Binary searching is first used in the tags files, when searching for a
  2440.     tag (e.g., for the |:ta| command).  This makes searching for a tag a
  2441.     LOT faster.  When no match was found in any of the files listed in
  2442.     'tags', a retry is done with a linear search.  Tags in unsorted tags
  2443.     files, and matches with different case will only be found in the
  2444.     retry.
  2445.     When this option is off, only the linear search is done.  This makes
  2446.     tags searching slower when a full match exists, but faster when no
  2447.     full match exists.  The number of tags found doesn't change, only the
  2448.     order in which they are found.
  2449.     This option doesn't affect the |:tselect| command, and other commands
  2450.     that find all matching tags (e.g., command line completion).
  2451.     {Vi: always uses binary search in some versions}
  2452.  
  2453.                         *'taglength'* *'tl'*
  2454. 'taglength' 'tl'    number    (default 0)
  2455.             global
  2456.     If non-zero, tags are significant up to this number of characters.
  2457.  
  2458.             *'tagrelative'* *'tr'* *'notagrelative'* *'notr'*
  2459. 'tagrelative' 'tr'    toggle    (Vim default: on, Vi default: off)
  2460.             global
  2461.             {not in Vi}
  2462.     If on and using a tag file in another directory, file names in that
  2463.     tag file are relative to the directory where the tag file is.  When
  2464.     the 'compatible' option is set, this option is reset.
  2465.  
  2466.                         *'tags'* *'tag'*
  2467. 'tags' 'tag'        string    (default "./tags,tags", when compiled with
  2468.                 |+emacs_tags|: "./tags,./TAGS,tags,TAGS")
  2469.             global
  2470.     Filenames for the tag command, separated by spaces or commas.  To
  2471.     include a space or comma in a file name, precede it with a backslash
  2472.     (see |option-backslash| about including spaces and backslashes).
  2473.     When a file name starts with "./", the '.' is replaced with the path
  2474.     of the current file.  But only when the 'd' flag is not included in
  2475.     'cpoptions'.  Environment variables are expanded |:set_env|.  Also see
  2476.     |tags-option|.
  2477.     If Vim was compiled with the |+emacs_tags| feature, Emacs-style tag
  2478.     files are also supported.  They are automatically recognized.  The
  2479.     default value becomes "./tags,./TAGS,tags,TAGS".  |emacs-tags|
  2480.     {Vi: default is "tags /usr/lib/tags"}
  2481.  
  2482.                         *'term'*
  2483. 'term'            string    (default is $TERM, if that fails:
  2484.                      on Unix: "ansi"
  2485.                         on Amiga: "amiga"
  2486.                        on MS-DOS: "pcterm"
  2487.                          on OS/2: "os2ansi"
  2488.                        on Win 32: "win32")
  2489.             global
  2490.     Name of the terminal.  Used for choosing the terminal control
  2491.     characters.  Environment variables are expanded |:set_env|.
  2492.     For example:
  2493. >        :set term=$TERM
  2494.     See |termcap|.
  2495.  
  2496.                         *'terse'* *'noterse'*
  2497. 'terse'            toggle    (default off)
  2498.             global
  2499.             {not in Vi}
  2500.     When set: Add 's' flag to 'shortmess' option (this makes the message
  2501.     for a search that hits the start or end of the file not being
  2502.     displayed).  When reset: Remove 's' flag from 'shortmess' option.  {Vi
  2503.     shortens a lot of messages}
  2504.  
  2505.                    *'textauto'* *'ta'* *'notextauto'* *'nota'*
  2506. 'textauto' 'ta'        toggle    (Vim default: on, Vi default: off)
  2507.             global
  2508.             {not in Vi}
  2509.     This option is obsolete.  Use 'fileformats'.
  2510.     For backwards compatibility, when 'textauto' is set, 'fileformats' is
  2511.     set to the default value for the current system.  When 'textauto' is
  2512.     reset, 'fileformats' is made empty.
  2513.  
  2514.                    *'textmode'* *'tx'* *'notextmode'* *'notx'*
  2515. 'textmode' 'tx'        toggle    (MS-DOS, Win32 and OS/2: default on,
  2516.                  others: default off)
  2517.             local to buffer
  2518.             {not in Vi}
  2519.     This option is obsolete.  Use 'fileformat'.
  2520.     For backwards compatibility, when 'textmode' is set, 'fileformat' is
  2521.     set to "dos".  When 'textmode' is reset, 'fileformat' is set to
  2522.     "unix".
  2523.  
  2524.                         *'textwidth'* *'tw'*
  2525. 'textwidth' 'tw'    number    (default 0)
  2526.             local to buffer
  2527.             {not in Vi}
  2528.     Maximum width of text that is being inserted.  A longer line will be
  2529.     broken after white space to get this width.  A zero value disables
  2530.     this.  'textwidth' is set to 0 when the 'paste' option is set.  When
  2531.     'textwidth' is zero, 'wrapmargin' may be used.  See also
  2532.     'formatoptions' and |ins-textwidth|.
  2533.  
  2534.                  *'tildeop'* *'top'* *'notildeop'* *'notop'*
  2535. 'tildeop' 'top'        toggle    (default off)
  2536.             global
  2537.             {not in Vi}
  2538.     When on: The tilde command "~" behaves like an operator.
  2539.  
  2540.                 *'timeout'* *'to'* *'notimeout'* *'noto'*
  2541. 'timeout' 'to'        toggle (default on)
  2542.             global
  2543.                         *'ttimeout'* *'nottimeout'*
  2544. 'ttimeout'        toggle (default off)
  2545.             global
  2546.             {not in Vi}
  2547.     These two options together determine the behaviour when part of a
  2548.     mapped key sequence or keyboard code has been received:
  2549.  
  2550.     timeout        ttimeout    action    ~
  2551.     off        off        no time out
  2552.     on        on or off    time out on :mappings and key codes
  2553.     off        on        time out on key codes
  2554.  
  2555.     If there is no time out, Vim will wait until either the complete
  2556.     mapping or key sequence has been received, or it is clear that there
  2557.     is no mapping or key sequence for the received characters.  For
  2558.     example: if you have mapped "vl" and Vim has received 'v', the next
  2559.     character is needed to see if the 'v' is followed by an 'l'.  With a
  2560.     time out Vim will wait for about 1 second for the next character to
  2561.     arrive.  After that the already received characters are interpreted
  2562.     as single characters.  The waiting time can be changed with the
  2563.     'timeoutlen' option.
  2564.     On slow terminals or very busy systems time out may cause
  2565.     malfunctioning cursor keys.  If both options are off, Vim waits
  2566.     forever after an entered <Esc> if there are key codes that start
  2567.     with <Esc>.  You will have to type <Esc> twice.  If you do not have
  2568.     problems with key codes, but would like to have :mapped key
  2569.     sequences not time out in 1 second, set the ttimeout option and
  2570.     reset the timeout option.
  2571.  
  2572.                         *'timeoutlen'* *'tm'*
  2573. 'timeoutlen' 'tm'    number    (default 1000)
  2574.             global
  2575.             {not in all versions of Vi}
  2576.                         *'ttimeoutlen'* *'ttm'*
  2577. 'ttimeoutlen' 'ttm'    number    (default -1)
  2578.             global
  2579.             {not in Vi}
  2580.     The time in milliseconds that is waited for a key code or mapped key
  2581.     sequence to complete.  Normally only 'timeoutlen' is used and
  2582.     'ttimeoutlen' is -1.  When a different timeout value for key codes is
  2583.     desired set 'ttimeoutlen' to a non-negative number.
  2584.  
  2585.         ttimeoutlen    mapping delay       key code delay    ~
  2586.                < 0          'timeoutlen'       'timeoutlen'
  2587.               >= 0          'timeoutlen'       'ttimeoutlen'
  2588.  
  2589.     The timeout only happens when the 'timeout' and 'ttimeout' options
  2590.     tell so.  A useful setting would be
  2591.         :set timeout timeoutlen=3000 ttimeoutlen=100
  2592.     (time out on mapping after three seconds, time out on key codes after
  2593.     a tenth of a second).
  2594.  
  2595.                         *'title'* *'notitle'*
  2596. 'title'            toggle    (default off, on when title can be restored)
  2597.             global
  2598.             {not in Vi}
  2599.     When on the title of the window will be set to "VIM - filename",
  2600.     where filename is the name of the file currently being edited.  Only
  2601.     works if the terminal supports setting window titles (currently Amiga
  2602.     console, Unix xterm and iris-ansi).  Overridden by the 'titlestring'
  2603.     option.
  2604.                                 *X11*
  2605.     When Vim was compiled with HAVE_X11 defined, the original title will
  2606.     be restored if possible.  The output of ":version" will include "+X11"
  2607.     when HAVE_X11 was defined, otherwise it will be "-X11".  This also
  2608.     works for the icon name |'icon'|.
  2609.     If the title cannot be restored, it is set to "Thanks for flying Vim".
  2610.     You will have to restore the title outside of Vim then.  When using an
  2611.     xterm from a remote machine you can use this command:
  2612.         rsh machine_name xterm -display $DISPLAY &
  2613.     then the WINDOWID environment variable should be inherited and the
  2614.     title of the window should change back to what it should be after
  2615.     exiting Vim (rather than using the "Thanks..." message).
  2616.  
  2617.                                 *'titlelen'*
  2618. 'titlelen'        number    (default 85)
  2619.             global
  2620.             {not in Vi}
  2621.     Gives the percentage of 'columns' to use for the length of the window
  2622.     title.  When the title is longer, only the end of the path name is
  2623.     shown.  A '>' character is used to indicate this.  Using a percentage
  2624.     makes this adapt to the width of the window.  But it won't work
  2625.     perfectly, because the actual number of characters available also
  2626.     depends on the font used and other things in the title bar.  When
  2627.     'titlelen' is zero the full path is used.  Otherwise, values from 1 to
  2628.     30000 can be used.  'titlelen' is not used for the 'titlestring'
  2629.     option.
  2630.  
  2631.                         *'titlestring'*
  2632. 'titlestring'        string    (default "")
  2633.             global
  2634.             {not in Vi}
  2635.     When this options is not empty, it will be used for the title of the
  2636.     window.  This happens regardless of the 'title' or 'titlelen' option.
  2637.     Only works if the terminal supports setting window titles (currently
  2638.     only Unix xterm and iris-ansi).  When Vim was compiled with HAVE_X11
  2639.     defined, the original title will be restored if possible |X11|.
  2640.     Example:
  2641. >        let hostname = expand("`hostname`")
  2642. >        auto BufEnter * let &titlestring = hostname . "/" . expand("%:p")
  2643.  
  2644.                  *'ttybuiltin'* *'tbi'* *'nottybuiltin'* *'notbi'*
  2645. 'ttybuiltin' 'tbi'    toggle    (default on)
  2646.             global
  2647.             {not in Vi}
  2648.     When on, the builtin termcaps are searched before the external ones.
  2649.     When off the builtin termcaps are searched after the external ones.
  2650.     When this option is changed, you should set the 'term' option next for
  2651.     the change to take effect, for example:
  2652. >        :set notbi term=$TERM
  2653.     See also |termcap|.
  2654.  
  2655.                      *'ttyfast'* *'tf'* *'nottyfast'* *'notf'*
  2656. 'ttyfast' 'tf'        toggle    (default off, on when 'term' is xterm, hpterm,
  2657.                     sun-cmd, scren, dtterm or iris-ansi)
  2658.             global
  2659.             {not in Vi}
  2660.     Indicates a fast terminal connection.  More characters will be sent to
  2661.     the screen for redrawing, instead of using insert/delete line
  2662.     commands.  Improves smoothness of redrawing when there are multiple
  2663.     windows and the terminal does not support a scrolling region.
  2664.     Also enables the extra writing of characters at the end of each screen
  2665.     line for lines that wrap.  This helps when using copy/paste with the
  2666.     mouse in an xterm and other terminals.
  2667.  
  2668.                         *'ttyscroll'* *'tsl'*
  2669. 'ttyscroll' 'tsl'    number    (default 999)
  2670.             global
  2671.     Maximum number of lines to scroll the screen.  If there are more lines
  2672.     to scroll the window is redrawn.  For terminals where scrolling is
  2673.     very slow and redrawing is not slow this can be set to a small number,
  2674.     e.g., 3, to speed up displaying.
  2675.  
  2676.                         *'ttytype'* *'tty'*
  2677. 'ttytype'    'tty'        string    (default from $TERM)
  2678.             global
  2679.     Alias for 'term', see above.
  2680.  
  2681.                         *'undolevels'* *'ul'*
  2682. 'undolevels' 'ul'        number    (default 100, 1000 for Unix and OS/2)
  2683.             global
  2684.             {not in Vi}
  2685.     Maximum number of changes that can be undone.  Set to 0 for Vi
  2686.     compatibility: one level of undo and "u" undoes itself.  But you can
  2687.     also get Vi compatibility by including the 'u' flag in 'cpoptions',
  2688.     and still be able to use CTRL-R to repeat undo.  Set to a negative
  2689.     number for no undo at all (saves memory).
  2690.  
  2691.                         *'updatecount'* *'uc'*
  2692. 'updatecount' 'uc'    number    (default: 200)
  2693.             global
  2694.             {not in Vi}
  2695.     After typing this many characters the swap file will be written to
  2696.     disk.  When zero, no swap file will be created at all (see chapter on
  2697.     recovery |crash-recovery|).  'updatecount' is set to zero by starting
  2698.     Vim with the "-n" option, see |startup|.  When editing in readonly
  2699.     mode this option will be initialized to 10000.  Also see |'swapsync'|.
  2700.  
  2701.                         *'updatetime'* *'ut'*
  2702. 'updatetime' 'ut'    number    (default 4000)
  2703.             global
  2704.             {not in Vi}
  2705.     If this many milliseconds nothing is typed the swap file will be
  2706.     written to disk (see |crash-recovery|).
  2707.  
  2708.                         *'verbose'* *'vbs'*
  2709. 'verbose' 'vbs'        number    (default 0)
  2710.             global
  2711.             {not in Vi}
  2712.     When bigger than zero, Vim will give messages about what it is doing.
  2713.     Currently, these messages are given:
  2714.     >= 1    When a file is ":source"'ed.
  2715.     >= 1    When the viminfo file is read or written.
  2716.     >= 8    Files for which a group of autocommands is executed.
  2717.     >= 9    Every executed autocommand.
  2718.  
  2719.     This option can also be set with the "-V" argument.  See |-V|.
  2720.  
  2721.                         *'viminfo'* *'vi'*
  2722.  
  2723. 'viminfo' 'vi'        string    (default "")
  2724.             global
  2725.             {not in Vi}
  2726.             {not available when compiled without the  |+viminfo|
  2727.             feature}
  2728.     When non-empty, the viminfo file is read upon startup and written
  2729.     when exiting Vim (see |viminfo-file|).  The string should be a comma
  2730.     separated list of parameters, each consisting of a single character
  2731.     identifying the particular parameter, followed by a number or string
  2732.     which specifies the value of that parameter.  If a particular
  2733.     character is left out, then the default value is used for that
  2734.     parameter.  The following is a list of the identifying characters and
  2735.     the effect of their value.
  2736.     CHAR    VALUE    ~
  2737.     '    Maximum number of previously edited files for which the marks
  2738.         are remembered.  This parameter must always be included when
  2739.         'viminfo' is non-empty.
  2740.     f    Whether file marks need to be stored.  If zero, file marks ('0
  2741.         to '9, 'A to 'Z) are not stored.  When not present or when
  2742.         non-zero, they are all stored.  '0 is used for the current
  2743.         cursor position (when exiting or when doing ":wviminfo").
  2744.     r    Removable media.  The argument is a string (up to the next
  2745.         ',').  This parameter can be given several times.  Each
  2746.         specifies the start of a path for which no marks will be
  2747.         stored.  This is to avoid removable media.  For MS-DOS you
  2748.         could use "ra:,rb:", for Amiga "rdf0:,rdf1:,rdf2:".  Case is
  2749.         ignored.  Maximum length of each 'r' argument is 50
  2750.         characters.
  2751.     "    Maximum number of lines saved for each register.  If zero then
  2752.         registers are not saved.  When not included, all lines are
  2753.         saved.  Dont forget to put a backslash before the ", otherwise
  2754.         it will be recognized as the start of a comment!
  2755.     :    Maximum number of items in the command line history to be
  2756.         saved.  When not included, the value of 'history' is used.
  2757.     /    Maximum number of items in the search pattern history to be
  2758.         saved.  If non-zero, then the previous search and substitute
  2759.         patterns are also saved.  When not included, the value of
  2760.         'history' is used.
  2761.     n    Name of the viminfo file.  The name must immediately follow
  2762.         the 'n'.  Must be the last one!  If the "-i" argument was
  2763.         given when starting Vim, that file name overrides the one
  2764.         given here with 'viminfo'.  Environment variables are expanded
  2765.         when opening the file, not when setting the option.
  2766.     %    When included, save and restore the buffer list.  If Vim is
  2767.         started with a file name argument, the buffer list is not
  2768.         restored.  If Vim is started without a file name argument, the
  2769.         buffer list is restored from the viminfo file.  Buffers
  2770.         without a file name and buffers for help files are not written
  2771.         to the viminfo file.
  2772.  
  2773.     Example:
  2774. >        :set viminfo='50,\"1000,:0,n~/vim/viminfo
  2775.  
  2776.     '50        Marks will be remembered for the last 50 files you
  2777.             edited.
  2778.     "1000        Contents of registers (up to 1000 lines each) will be
  2779.             remembered.
  2780.     :0        Command line history will not be saved.
  2781.     n~/vim/viminfo    The name of the file to use is "~/vim/viminfo".
  2782.     no /        Since '/' is not specified, the default will be used,
  2783.             that is, save all of the search history, and also the
  2784.             previous search and substitute patterns.
  2785.     no %        The buffer list will not be saved nor read back.
  2786.  
  2787.             *'visualbell'* *'vb'* *'novisualbell'* *'novb'* *beep*
  2788. 'visualbell' 'vb'    toggle    (default off)
  2789.             global
  2790.             {not in Vi}
  2791.     Use visual bell instead of beeping.  The terminal code to display the
  2792.     visual bell is given with 't_vb'.  When no beep of flash is wanted,
  2793.     use ":set vb t_vb=".  Does not work on the Amiga, you always get a
  2794.     screen flash.  Also see 'errorbells'.
  2795.  
  2796.                         *'warn'* *'nowarn'*
  2797. 'warn'            toggle    (default on)
  2798.             global
  2799.     Give a warning message when a shell command is used while the buffer
  2800.     has been changed.
  2801.  
  2802.              *'weirdinvert'* *'wiv'* *'noweirdinvert'* *'nowiv'*
  2803. 'weirdinvert' 'wiv'    toggle    (default off)
  2804.             global
  2805.             {not in Vi}
  2806.     This option has the same effect as the 't_xs' termcap option.
  2807.     It is provided for backwards compatibility with version 4.x.
  2808.     Setting 'weirdinvert' has the effect of making 't_xs' non-empty, and
  2809.     vise versa.  Has no effect when the GUI is running.
  2810.  
  2811.                         *'whichwrap'* *'ww'*
  2812. 'whichwrap' 'ww'    string    (Vim default: "b,s", Vi default: "")
  2813.             global
  2814.             {not in Vi}
  2815.     Allow specified keys that move the cursor left/right to wrap to the
  2816.     previous/next line when the cursor is on the first/last character in
  2817.     the line.  Concatenate characters to allow this for these keys:
  2818.         char   key      mode    ~
  2819.          b    <BS>     Normal and Visual
  2820.          s    <Space>     Normal and Visual
  2821.          h    "h"     Normal and Visual
  2822.          l    "l"     Normal and Visual
  2823.          <    <Left>     Normal and Visual
  2824.          >    <Right>      Normal and Visual
  2825.          [    <Left>     Insert and Replace
  2826.          ]    <Right>     Insert and Replace
  2827.     For example:
  2828. >        :set ww=<,>,[,]
  2829.     allows wrap only when cursor keys are used.
  2830.     When the movement keys are used in combination with a delete or change
  2831.     operator, the <EOL> also counts for a character.  This makes "3h"
  2832.     different from "3dh" when the cursor crosses the end of a line.  This
  2833.     is also true for "x" and "X", because they do the same as "dl" and
  2834.     "dh".  If you use this, you may also want to use the mapping
  2835.     ":map <BS> X" to make backspace delete the character in front of the
  2836.     cursor.
  2837.     When 'l' is included, you get a side effect: "yl" on an empty line
  2838.     will include the <EOL>, so that "p" will insert a new line.
  2839.     When 'compatible' is set, 'whichwrap' is set to "".
  2840.  
  2841.                         *'wildchar'* *'wc'*
  2842. 'wildchar' 'wc'        number    (Vim default: <Tab>, Vi default: CTRL-E)
  2843.             global
  2844.             {not in Vi}
  2845.     Character you have to type to start wildcard expansion in the
  2846.     command line.  CTRL-E is used when the 'compatible' option is set.
  2847.     The character is not recognized when used inside a macro.  Although
  2848.     'wc' is a number option, you can set it to a special key: ":set
  2849.     wc=<Esc>".
  2850.  
  2851.                         *'winheight'* *'wh'*
  2852. 'winheight' 'wh'    number    (default 0)
  2853.             global
  2854.             {not in Vi}
  2855.     Minimal number of lines for the current window.  If the current
  2856.     window is smaller, its size is increased, at the cost of the height
  2857.     of other windows.  Set it to 999 to make the current window always
  2858.     fill the screen.  Set it to a small number for normal editing.  The
  2859.     height is not adjusted after one of the commands to change the
  2860.     height of the current window.
  2861.  
  2862.                         *'wrap'* *'nowrap'*
  2863. 'wrap'            toggle    (default on)
  2864.             local to window
  2865.             {not in Vi}
  2866.     When on, lines longer than the width of the window will wrap and
  2867.     displaying continues on the next line.  When off lines will not wrap
  2868.     and only part of long lines will be displayed.  When the cursor is
  2869.     moved to a part that is not shown, the screen will scroll horizontally
  2870.     (also see 'sidescroll' option and |wrap-off|).  If you want to break
  2871.     long lines, see 'textwidth'.
  2872.  
  2873.                         *'wrapmargin'* *'wm'*
  2874. 'wrapmargin' 'wm'    number    (default 0)
  2875.             local to buffer
  2876.     Number of characters from the right window border where wrapping
  2877.     starts.  When typing text beyond this limit, an <EOL> will be inserted
  2878.     and inserting continues on the next line.  When 'textwidth' is
  2879.     non-zero, this option is not used.  See also 'formatoptions' and
  2880.     |ins-textwidth|.  {Vi: works differently and less useful}
  2881.  
  2882.                    *'wrapscan'* *'ws'* *'nowrapscan'* *'nows'*
  2883. 'wrapscan' 'ws'        toggle    (default on)
  2884.             global
  2885.     Searches wrap around the end of the file.
  2886.  
  2887.                    *'writeany'* *'wa'* *'nowriteany'* *'nowa'*
  2888. 'writeany' 'wa'        toggle    (default off)
  2889.             global
  2890.     Allows writing to any file with no need for "!" override.
  2891.  
  2892.                  *'writebackup'* *'wb'* *'nowritebackup'* *'nowb'*
  2893. 'writebackup' 'wb'    toggle    (default on with |+writebackup| feature, off
  2894.                     otherwise)
  2895.             global
  2896.             {not in Vi}
  2897.     Make a backup before overwriting a file.  The backup is removed after
  2898.     the file was successfully written, unless the 'backup' option is
  2899.     also on.  Reset this option if your file system is almost full.  See
  2900.     |backup-table| for another explanation.
  2901.  
  2902.                         *'writedelay'* *'wd'*
  2903. 'writedelay' 'wd'    number    (default 0)
  2904.             global
  2905.             {not in Vi}
  2906.     The number of microseconds to wait for each character sent to the
  2907.     screen.  When non-zero, characters are sent to the terminal one by
  2908.     one.  For MS-DOS pcterm this does not work.  For debugging purposes.
  2909.  
  2910.  vim:tw=78:ts=8:sw=8:
  2911.